programming problem-solving (pure prime numbers)