CACI International Interview Question

Write a program to generate all prime numbers