Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

First 100 Prime Nos.

Name: C++ 2009-08-10 6:32

I'm trying to make a program which displays the first 100 prime numbers. I've managed to make one which tells us whether a number is prime or not(http://pastebin.com/m38992e3e), but I cannot figure out how to print the first 100 prime nos.

Any help?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-10 9:51

Okay, you're wasting my time:
1 is a prime(no divisors), every number after 1 is prime if it:
1.Has its only divisors 1 and itself: result:
1,2,3,5,7,11,13...



_____________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
You're supposed to be developing verbal abilities for your big aptitude test tomorrow.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List