all prime numbers


Submit solution

Points: 50 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

題目說明

請輸入兩個正整數N1及N2 (N2 > N1),之後輸出兩數之間的所有質數 若N1或N2為質數,也要數出

輸入限制: 正整數

輸入

正整數N1及N2

輸出

N1~N2之間的所有質數

sample input1

3 19

sample output1

3 5 7 11 13 17 19

Comments

There are no comments at the moment.