Back to the Main Page
primes.c
Calculates and Lists Primes.
My first real, from scratch c programme.
primes prime_count
will list the first prime_count primes.
e.g.
primes 10
2
3
5
7
11
13
17
19
23
29
and
primes 10 -v
Count Primes
0 2
1 3
2 5
3 7
4 11
5 13
6 17
7 19
8 23
9 29
Source Code:
Back to the Main Page