A092114 Duplicate of A032711.
2, 3, 6, 8, 9, 11, 14, 15, 20, 21, 24, 27, 29, 33, 38, 39, 42, 47, 50, 54, 59, 63, 66, 68, 69
Offset: 1
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
a(4) = 1 because 2030507 is composite and 2131517 is prime.
fpkQ[k_, n_] := PrimeQ[ FromDigits[ Flatten[ IntegerDigits /@ Insert[ Table[ Prime[i], {i, k}], n, Table[{i}, {i, 2, k}]]]]]; a[1] = 0; a[3] = a[10] = a[16] = a[28] = a[34] = a[40] = a[46] = a[52] = a[70] = a[76] = a[82] = a[88] = a[97] = -1; a[n_] := Block[{k = 0}, While[ fpkQ[n, k] != True, k++ ]; k]; Table[ a[n], {n, 70}] (* Robert G. Wilson v, Dec 11 2004 *)
10 is in the sequence because 210310510710111013 is prime.
v={};Do[If[PrimeQ[FromDigits[Join[{2}, IntegerDigits[n], {3}, IntegerDigits[n], {5}, IntegerDigits[n], {7}, IntegerDigits[n], {1, 1}, IntegerDigits[n], {1, 3}]]], v=Append[v, n]], {n, 1400}];v fp6Q[n_] := PrimeQ[ FromDigits[ Flatten[ IntegerDigits /@ Insert[{2, 3, 5, 7, 11, 13}, n, {{2}, {3}, {4}, {5}, {6}}]]]]; Select[ Range[1100], fp6Q[ # ] &] (* Robert G. Wilson v, Dec 11 2004 *) Select[Range[1100],PrimeQ[FromDigits[Flatten[IntegerDigits/@Riffle[{2,3,5,7,11,13}, #]]]]&] (* Harvey P. Dale, Mar 21 2013 *)
8 and 21 are in the sequence because 2838587 and 2213215217 are primes. 16 is in the sequence because 2163165167 is prime.
filter:= proc(n) local m; m:= ilog10(n)+1; isprime(n*(10 + 10^(m+2)+ 10^(2*m+3))+7+5*10^(m+1)+3*10^(2*m+2)+2*10^(3*m+3)) end proc: select(filter, [$1..2000]); # Robert Israel, Nov 12 2019
v={};Do[If[PrimeQ[FromDigits[Join[{2},IntegerDigits[n],{3}, IntegerDigits[n],{5},IntegerDigits[n],{7}]]],v=Append[v,n]], {n,1300}];v Select[Range[1300],PrimeQ[FromDigits[Flatten[IntegerDigits/@ Riffle[ {2,3,5,7}, Table[#,{3}]]]]]&](* Harvey P. Dale, Nov 24 2015 *)
is(n)=isprime(eval(Str(2,n,3,n,5,n,7))) \\ Charles R Greathouse IV, May 15 2013
2.4.3.4.5.4.7.4.11 = 2434547411, which is prime. Hence 4 is in the sequence.
v={};Do[If[PrimeQ[FromDigits[Join[{2}, IntegerDigits[n], {3}, IntegerDigits[n], {5}, IntegerDigits[n], {7}, IntegerDigits[n], {1, 1}]]], v=Append[v, n]], {n, 1000}];v Select[Range[660], PrimeQ[FromDigits[Join[{2}, IntegerDigits[ # ], {3}, IntegerDigits[ # ], {5}, IntegerDigits[ # ], {7}, IntegerDigits[ # ], {1, 1}]]] &] (* Stefan Steinerberger, Jun 28 2007 *)
from sympy import isprime def aupton(terms): n, alst = 1, [] while len(alst) < terms: s = str(n) t = int('2'+s+'3'+s+'5'+s+'7'+s+'11') if isprime(t): alst.append(n) n += 1 return alst print(aupton(55)) # Michael S. Branicky, Apr 18 2021
96 is in the sequence because fp(50,k)=2//k//3//k//5//k//7//k//11//k//13...//k//229 fp(50,96)=296396596...22796229 is prime. fp(50,96) is prime number with 219 digits.
Select[Range[16100],PrimeQ[FromDigits[Flatten[IntegerDigits/@ Riffle[ Prime[ Range[ 50]],#]]]]&] (* Harvey P. Dale, Jan 07 2021 *)
Comments