Fast Enterprises Interview Question

Write a Funcation for IsPrime and then use it.