Givennnn, you need to find all pairs(p,q)(p,q)(p,q)such that: 1≤p≤q≤n1leq pleq qleq n1≤p≤q≤n. p,qp,qp,qare all primes. pq+qpp^q+q^ppq+qpis a prime.
Given nnn, you need to find all pairs (p,q)(p,q)(p,q) such that: 1≤p≤q≤n1leq pleq qleq n1≤p≤q≤n. p,qp,qp,q are all primes. pq+qpp^q+q^ppq+qp is a prime.
(图片来源网络,侵删)