joj2359
来源:互联网 发布:ubuntu怎么安装fcitx 编辑:程序博客网 时间:2024/06/06 00:32
2359: Prime Before 2007
A prime number is a positve integer that is divided evenly only by 1 and itself. There are infinitely prime number. The Greek mathematician Euclid proved this more than 2,000 years ago. If a number has factors other than 1 and itself, it's called composite.
Is this year 2007 is a prime? Of course, it is not a prime. 2007 can be divided by 3 and other factors. Your task is to find all primes between 1000 and 2007.
Input
No input in this problem.
Output
Output all prime between 1000 and 2007 ascending. One prime in one line.
Sample Output
Output is just as below.
10091013.........2003
Problem Source: 1st Jilin Province Contest, skywind
This problem is used for contest: 63 145 164
Submit / Problem List / Status / Discuss