get_diff fixed, now segmented_sieve works without masking