NeoSOFT interview question

Q: Write the code for prime number