login
Numbers n such that n^32+(n+1)^32 is a prime
9

%I #10 Sep 08 2022 08:45:51

%S 8,10,12,22,100,146,154,219,246,269,287,309,336,373,392,398,423,440,

%T 449,476,515,540,557,628,671,693,715,733,746,780,848,879,913,924,926,

%U 937,974,975,1130,1191,1193,1198,1204,1260,1272,1316,1378,1400,1414,1451

%N Numbers n such that n^32+(n+1)^32 is a prime

%H Vincenzo Librandi, <a href="/A174156/b174156.txt">Table of n, a(n) for n = 1..1000</a>

%t lst={};Do[If[PrimeQ[n^32+(n+1)^32],AppendTo[lst,n]],{n,1500}];lst (* _Vincenzo Librandi_, Aug 31 2012 *)

%t Select[Range[1500], PrimeQ[#^32 + (# + 1)^32] &] (* _Bruno Berselli_, Aug 31 2012 *)

%t Position[Total/@Partition[Range[1460]^32,2,1],_?(PrimeQ[#]&)]//Flatten (* _Harvey P. Dale_, Jul 05 2021 *)

%o (Magma) [n: n in [1..1500] | IsPrime(n^32+(n+1)^32 )];

%Y Cf. A153504, A154535, A155211.

%K nonn,easy

%O 1,1

%A _Vincenzo Librandi_, Mar 10 2010