Neurologica's scan-analysis pipeline needs the prime-valued calibration intervals within a numeric range. Given two integers, return every prime number between them, inclusive, in ascending order.
Use an efficient sieve-based approach rather than testing each number independently. The range may contain large values, but its width is bounded.
Implement primes_in_range(start, end).
start and end, where 0 <= start <= end.p such that start <= p <= end, ordered from smallest to largest.1 with exactly two positive divisors.def primes_in_range(start, end):