Pergunta de entrevista da empresa VaxCare

Code a function in C# that when supplied with an integer, determines whether or not that integer is a prime number.