prime number generation generates empty list for 1