Dassault Systèmes interview question

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