Paycom interview question

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