A056637
a(n) is the least prime of class n-, according to the Erdős-Selfridge classification of primes.
Original entry on oeis.org
2, 11, 23, 47, 283, 719, 1439, 2879, 34549, 138197, 1266767, 14920303, 36449279, 377982107, 1432349099, 22111003847, 110874748763
Offset: 1
Cf.
A005113,
A005109,
A005110,
A005111,
A005112,
A081424,
A081425,
A081426,
A081427,
A081428,
A081429,
A081430.
-
PrimeFactors[n_Integer] := Flatten[ Table[ #[[1]], {1}] & /@ FactorInteger[n]]; NextPrime[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; f[n_Integer] := Block[{m = n}, If[m == 0, m = 1, While[ IntegerQ[m/2], m /= 2]; While[ IntegerQ[m/3], m /= 3]]; Apply[Times, PrimeFactors[m] - 1]]; ClassMinusNbr[n_] := Length[NestWhileList[f, n, UnsameQ, All]] - 3; a = Table[0, {15}]; a[[1]] = 2; k = 5; Do[c = ClassMinusNbr[ k]; If[ a[[c]] == 0, a[[c]] = k]; k = NextPrime[k], {n, 3, 7223000}]; a
A081641
a(n) = n-th prime of class 13- according to the Erdős-Selfridge classification.
Original entry on oeis.org
36449279, 53065907, 59681213, 69096887, 132756479, 135388367, 164255999, 179043637, 188991053, 207290663, 241560239, 279709259, 309550999, 364492781, 372993983, 377982103, 398007431, 406165099, 425633717, 445901987, 447609067, 516737983
Offset: 1
- R. K. Guy, Unsolved Problems in Number Theory, A18.
Cf.
A005113,
A005105,
A005106,
A005107,
A005108,
A081633,
A081633,
A081635,
A081636,
A081637,
A081638.
-
PrimeFactors[n_Integer] := Flatten[ Table[ #[[1]], {1}] & /@ FactorInteger[n]]; f[n_Integer] := Block[{m = n}, If[m == 0, m = 1, While[ IntegerQ[m/2], m /= 2]; While[ IntegerQ[m/3], m /= 3]]; Apply[Times, PrimeFactors[m] - 1]]; ClassMinusNbr[n_] := Length[ NestWhileList[f, n, UnsameQ, All]] - 3; Prime[ Select[ Range[23733333], ClassMinusNbr[ Prime[ # ]] == 12 &]]
-
A081641 = nextclassminus(A081640) /* cf. A081640 - M. F. Hasler, Apr 05 2007 */
A129249
Primes of Erdos-Selfridge class 15-.
Original entry on oeis.org
1432349099, 1749565397, 2771868719, 3790874279, 5288908679, 5804138567, 6273146879, 8123301983, 8594094589, 11055501923, 11809566403, 11914176299, 12647401799, 13432673083, 13925010299, 14208729979
Offset: 1
-
class(n, s=1) = { if(!isprime(n),0, if(!(n=factor(n+s)[,1]) || n[ #n]<=3,1, for(i=2,#n,n[1]=max(class(n[i],s)+1,n[1]));n[1]))}
nextclass(a,s=-1,p,n=[])={if(!p,p=nextprime(a[ #a]+1)); print("producing primes of class ",1+class(a[1],s),["+","-"][1+(s<0)]," up to 2*",p); for(i=1,#a,for(k=1,p/a[i],if(isprime(2*k*a[i]-s),n=concat(n,2*k*a[i]-s))));vecsort(n)}
A129249=nextclass(A129248)
A129250
Primes of Erdős-Selfridge class 16-.
Original entry on oeis.org
22111003847, 25782283783, 34824831403, 42970472971, 44905511759, 45490491349, 52486961911, 54560052479, 55437374381, 65803884467, 66333011539
Offset: 1
-
nextclass( a, s=-1, p, n=[] )={ if( !p, p=nextprime(a[ #a]+1)); print("Computing all primes of next class up to ",2*p-s ); for( i=1,#a, for( k=1,p/a[i], if( is/*pseudo*/prime(2*k*a[i]-s), n=concat(n,2*k*a[i]-s); ) ) ); vecsort(n) }; A129250=nextclass(A129249)
Showing 1-4 of 4 results.
Comments