IDEMIA Interview Question

Program for prime number?