Takes a number and returns all prime numbers less than it