Pearson Interview Question

They asked me to write out a simple program to find prime numbers