Pergunta de entrevista da empresa USAA

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