Dassault Systèmes Interview Question

Write a function which can determine whether the argument is a prime number or not