Refactored prime sieve code into own file