Siemens Interview Question

1.program to check prime