Fast Enterprises Interview Question

How to write a method to find prime bunbers