Siemens interview question

1.program to check prime