Citadel Interview Question

find all prime numbers smaller than n.