6916. Prime Pairs With Target Sum
You are given an integer
n
. We say that two integersx
andy
form a prime number pair if:
1 <= x <= y <= n
x + y == n
x
andy
are prime numbersReturn the 2D sorted list of prime number pairs
[xi, yi]
. The list should be sorted in increasing order ofxi
. If there are no prime number pairs at all, return an empty array.Note: A prime number is a natural number greater than
1
with only two factors, itself and1
.
1 | class Solution { |