MBC Group Interview Question

Write a code to check if a number is prime or not