1 | initial version |
I am not sure what is your aim, but the function prime_range returns you a list of the prime integers below a given bound
sage: prime_range(20)
[2, 3, 5, 7, 11, 13, 17, 19]
sage: prime_range(50)
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]