ADJACENT PRIMES
CodeChefOpen on judge ↗
$Goldbach's$ $Conjecture$ is one of the oldest and best-known unsolved problems in number theory and all of mathematics. It states that : Every even integer greater than 2 can be expressed as the sum of two primes. Chef wondered are these primes $adjacent$. He asked you to find all possible even numbers in range $A$ and $B$ (both inclusive) which can be expressed as sum of two $adjacent$ prime n
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start