This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingFind the closest prime pair inside a range.
What this asks
Find the closest prime pair inside a range.
Sieve the range (segmented when it is large), then scan neighbouring primes for the smallest gap.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing