Paycom Interview Question

Code an algorithm to find all prime numbers less than n.