Adds all prime numbers under a certain threshold