IDEMIA interview question

Program for prime number?