Problem G: 素数表

Problem G: 素数表

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 188  Solved: 103
[Submit] [Status] [Web Board] [Creator:]

Description

输入正整数A,B,1≤A,B≤1000,输出[A,B]之间的的全部素数,要求按照%4d格式输出,每输出10个素数换行

Sample Input Copy

1 50

Sample Output Copy

   2   3   5   7  11  13  17  19  23  29
  31  37  41  43  47