Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number output printing in an Array

Status
Not open for further replies.

pya

Technical User
Dec 18, 2020
40
0
0
AU
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

Can someone please help?

Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top