PAT number of prime numbers Python version

Pi denotes the i-th order prime number. The current to the two positive integers M <= N <= 10 . 4 , output of the PM to make all the PN primes.

Input formats:

M and N are given in the input line, separated by a space therebetween.

Output formats:

Output from the PM to PN of all prime numbers, not accounting for 1 line 10 digits, but the end of the line may not have the extra space.

Sample input:

5 27

Sample output:

11 13 17 19 23 29 31 37 41 43
47 53 59 61 67 71 73 79 83 89
97 101 103

Guess you like

Origin www.cnblogs.com/andrew3/p/12625750.html