IBM Interview Question

Get all prime numbers that are less than n.