求所有质数 p=a4+b4+c4−3(a,b,c 为质数)之和。
模 16 分析:若 a,b,c 全为奇质数,则 a4≡1(mod16),p≡0(mod16),只能是 p=2,但 a4≥81,不可能。
故至少一个为 2。设 a=2,则 p=13+b4+c4。b,c 需同为奇质数(使 b4+c4 为偶数)。
试验小质数:仅 b=3,c=5(及排列)给出质数 p=719。
所有可能的 p 之和为 719。
英文解析
Find sum of all primes p=a4+b4+c4−3 where a,b,c are primes.
Modulo 3: for any integer x, x4≡0 or 1(mod3) (since 14=1, 24=16≡1).
So a4+b4+c4≡0,1,2,3≡0,1,2,0(mod3). Thus a4+b4+c4−3≡0,1,2,0(mod3).
For p to be prime, p≡0(mod3) unless p=3.
Case p=3: a4+b4+c4=6. Since a,b,c≥2 (primes), a4≥16, so this is impossible. No solution with p=3.
So a4+b4+c4≡0(mod3), which means not all of a,b,c are ≡0(mod3) or all ≡±1(mod3) such that sum ≡0.
Also modulo 2: all primes except 2 are odd. x4 for odd x is odd. So parity considerations give constraints.
Modulo 5: x4≡0 (if x=5) or 1 (otherwise, by FLT: x4≡1(mod5) for x≡0).
Due to the small values: 24=16, 34=81, 54=625, 74=2401, ...
If at least one of a,b,c=2: a4=16. Need b4+c4=p+3−16=p−13. Since b4,c4≥16, p≥45.
If a=b=c=2: p=48−3=45, not prime.
If two are 2 (a=b=2): p=32+c4−3=29+c4. For c=2: done. c=3: p=29+81=110, not prime. c=5: 29+625=654 even. All even for odd c since 29 is odd, c4 is odd, sum is even → not prime.
If one is 2 (a=2): p=16+b4+c4−3=13+b4+c4. For p to be prime, 13+b4+c4 must be odd. b4+c4 must be even, so both b,c odd or both even. Since primes > 2 are odd, both b,c must be odd primes.
b=c=3: p=13+81+81=175=52⋅7, not prime.
b=3,c=5: p=13+81+625=719. 719 is prime (checked: 719 mod 2,3,5,7,11,13,17,19,23 → 719=7·102+5, 719=11·65+4, 719=13·55+4, 719=17·42+5, 719=19·37+16, 719=23·31+6, 719<29²). ✓
b=3,c=7: p=13+81+2401=2495, divisible by 5 ✗.
b=5,c=5: p=13+625+625=1263=3⋅421 ✗.
For larger primes b,c, p grows and is more likely composite.
Now if none of a,b,c is 2: all are odd primes. Then a4,b4,c4 are all ≡1(mod16) (for odd numbers, fourth powers are 1 mod 16). So a4+b4+c4≡3(mod16), and p=a4+b4+c4−3≡0(mod16), so p is even. The only even prime is 2.
p=2: a4+b4+c4=5. Since each a4≥16 (odd prime ≥3), this is impossible.
So the only possible solution is (2,3,5) and permutations, giving p=719.
Sum of all such primes p=719 (a single value).