Fast Enterprises interview question

Write a Funcation for IsPrime and then use it.