Viewpost interview question

Write a function that determines if N is a prime number.