Sollicitatievraag bij Mortgage Cadence

How would you make a prime checking function more efficient?