FactSet interview question

Write a c program for prime numbers, control statements