prime numbers generator (slow)