USAA Interview Question

Write a program in R or Python to find if a number is prime or not.