I’m currently enrolled in a javascript course right now and I reached my first real challenge recently. I was to generate all prime numbers between 1 and 1000. Also I had to create the numbers within a table which printed 10 numbers on a row and then started a new row. It took forever, with a few suggestions from my friend Brad, but I came to a solution with a lot of time spent and a couple of loops. I had some issues finding information online so I wanted to help someone in the future that needs some assistance like I could have used! Please feel free to check it out and make please make some suggestions because I’m still learning too!
Download Prime Number File














{ 1 comment… read it below or add one }
To get rid of the gap:
you have the ending tags for the tr and table elements as and .
Change them to and , it worked for me after those changes.