A119892 Prime quartet leaders: largest number of a prime quartet.
2999, 3989, 4799, 4889, 5879, 5897, 5987, 6599, 6689, 6779, 6869, 6959, 6977, 7499, 7589, 7877, 7949, 8597, 8669, 8849, 8867, 9479, 9497, 9587, 9677, 9749, 9767, 9839, 9857, 9929, 12899, 13799, 13997, 14699, 14879, 14897, 14969, 15797, 15887, 15959
Offset: 1
Examples
2999 is in the sequence because it is the largest number of the prime quartet (2999,29,11,2).
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..2000
- L. Stevens, Prime ensembles
Programs
-
Mathematica
pqQ[n_]:=Module[{p1=NestList[Total[IntegerDigits[#]]&,n,3]},AllTrue[ Take[ p1,3],#>9&]&&AllTrue[p1,PrimeQ]]; Select[Range[16000],pqQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 02 2020 *)
-
PARI
DigitSum(n,b=10)=local(x);x=0;while(n,x+=n%b;n\=b);x PrimeEnsemble(n,b=10)=local(x);x=1;while(ispseudoprime(n),if(n=4, print1(p", "))); \\ Martin Fuller
Comments