Problem 2761 · Medium

Prime Pairs With Target Sum

Test each smaller number x up to half the target: the pair is valid when both x and target minus x are prime.

Open the interactive visualisation