cp's OEIS Frontend

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.

Previous Showing 11-14 of 14 results.

A099073 Numbers k such that the concatenation of the first k-1 odd primes in decreasing order is prime.

Original entry on oeis.org

2, 3, 7, 24, 76, 1100
Offset: 1

Views

Author

Farideh Firoozbakht, Nov 06 2004

Keywords

Comments

A100003(n) = prime(a(n)). Next term is greater than 4500 and the prime corresponding to the next term has more than 21000 digits. Number of digits of primes corresponding to the six known terms of the sequence are respectively 1, 2, 9, 43, 198, and 4202. There is no known prime formed by concatenation of the first k odd primes in increasing order for 1 < k < 2250.
a(7) > 20000. - Michael S. Branicky, Nov 25 2024

Examples

			7 is in the sequence because the first 6 odd primes are 3,5,7,11,13,17 and 17.13.11.7.5.3 is prime (dot between numbers means concatenation).
		

Crossrefs

Programs

  • Mathematica
    Do[If[PrimeQ[(v={};Do[v=Join[v, IntegerDigits[Prime[n-j+1]]], {j, n-1}];FromDigits[v])], Print[n]], {n, 2, 4500}]
    Select[Range[1100],PrimeQ[FromDigits[Flatten[IntegerDigits/@ Reverse[ Prime[ Range[ 2,#]]]]]]&] (* Harvey P. Dale, Nov 12 2017 *)

A283561 Numbers k such that the concatenation of the first k nonsquares gives a prime.

Original entry on oeis.org

1, 2, 5, 550, 832, 10431
Offset: 1

Views

Author

XU Pingya, Mar 10 2017

Keywords

Comments

Indices n for which A283560(n) is prime.
A283560(1) = 2, A283560(2) = 23, A283560(5) = 23567, A283560(550) = 23567810...570571572573 is 1554-digits prime, A283560(832) = 23567810...858859860861 is 2400-digits prime.
Next term, if there is, will be more than 6100.
a(7) > 30000. - Michael S. Branicky, Apr 30 2025

Crossrefs

Programs

  • Mathematica
    cns[n_]:=FromDigits[Flatten[IntegerDigits[Table[k+Floor[1/2+Sqrt[k]],{k,1,n}]]]]
    Select[Table[cns[n],{n,6100}],PrimeQ]
  • PARI
    is(n)=my(s=""); for(k=1,n, s=Str(s, (sqrtint(4*k)+1)\2 + k)); ispseudoprime(eval(s)) \\ Charles R Greathouse IV, Mar 10 2017

Extensions

a(6) from Michael S. Branicky, Apr 28 2025

A217040 Bases b in which the increasing concatenation of all primes smaller than b forms a prime number.

Original entry on oeis.org

3, 4, 5, 9, 10, 15, 244, 676, 14870, 23526, 35732, 47133, 66878
Offset: 1

Views

Author

James G. Merickel, Sep 25 2012

Keywords

Comments

This sequence is a list of those bases that give prime values analogous to the prime 2357 in base 10.
Heuristically, this sequence should be infinite with approximately logarithmic density. - Charles R Greathouse IV, Sep 27 2012

Examples

			2 is the only prime less than 3, and the improper 'concatenation' of this one term is prime, so 3 is in this sequence.
In base 4, the number represented as 23 is 2*4 + 3 = 11, a prime (so 4 is included in the list); the base-5 case, similarly, yields the prime 13, as represented in base 10; 6 is not on the list because 2*6^2+3*6+5=95 is composite; and so on.
		

Crossrefs

Programs

  • PARI
    is(n)=isprime(subst(Pol(primes(primepi(n-1))),'x,n)) \\ Charles R Greathouse IV, Sep 26 2012
    
  • Python
    from sympy import primerange, isprime
    def fromdigits(d, b):
      n = 0
      for di in d: n *= b; n += di
      return n
    def ok(b): return isprime(fromdigits([p for p in primerange(1, b)], b))
    print([b for b in range(3, 700) if ok(b)]) # Michael S. Branicky, Mar 04 2021

Extensions

a(10) from Charles R Greathouse IV, Sep 27 2012
a(11)-a(12) from Michael S. Branicky, Jul 27 2023
a(13) from Michael S. Branicky, Aug 03 2023

A263959 Number of decimal digits in A069151(n).

Original entry on oeis.org

1, 2, 4, 355, 499, 1171, 1543, 5719
Offset: 1

Views

Author

Eric W. Weisstein, Oct 30 2015

Keywords

Comments

Subset of A227530 (Copeland-Erdős constant primes) corresponding to concatenation of a full (non-truncated) final prime.
a(9) > 459970. - Eric W. Weisstein (according to Mark Rodenkirch as of Nov 21 2015)

Crossrefs

Cf. A227529 (Copeland-Erdős constant primes).
Cf. A227530 (decimal digits in n-th Copeland-Erdős constant prime).

Programs

  • Mathematica
    Cases[FromDigits /@ Rest[FoldList[Join, {}, IntegerDigits[Prime[Range[10^3]]]]], p_?PrimeQ :> IntegerLength[p]]
  • PARI
    p=""; for(n=1, 1e4, p=concat(p, prime(n)); if(ispseudoprime( eval(p)), print1(#Str(p)", "))) \\ Altug Alkan, Oct 30 2015
Previous Showing 11-14 of 14 results.