Moved add into sieve() since it was just a helper function for sieve