Primes
Given an integer N ≤ 100, output the first N primes, one per line.Sample Input
4
Sample Output
2 3 5 7
All Submissions
Best Solutions
Point Value: 3
Time Limit: 1.00s
Memory Limit: 16M
Added: Sep 23, 2008
Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3
Comments (Search)
Also, I can't say I approve of your solution method...