generate prime numbers less than N