I generate Prime Numbers upto 1000 and output them to a file.
But they print in long column.
I want to print them in an array.
Example
2 3 5 7 11 13
17 19 23 29 31
37 41
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.