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.

Showing 1-10 of 30 results. Next

A088273 Duplicate of A049054.

Original entry on oeis.org

1, 2, 5, 6, 11, 17, 18, 39, 56, 101, 105, 107, 123, 413, 426, 2607
Offset: 1

Views

Author

Keywords

A108050 Integers k such that 10^k+21 is prime.

Original entry on oeis.org

1, 3, 9, 17, 55, 77, 133, 195, 357, 1537, 2629, 3409, 8007, 25671, 48003, 55811, 94983, 109615, 135669
Offset: 1

Views

Author

Julien Peter Benney (jpbenney(AT)ftml.net), Jun 01 2005

Keywords

Comments

There cannot be any primes of this form when k is even, because all such numbers must be divisible by 11. A number is divisible by 11 if the difference between the sum of its odd digits and the sum of its even digits is 0 or divisible by 11. When k is even, the difference is always 0. - Dmitry Kamenetsky, Jul 12 2008
The next term, if one exists, is >100000. - Robert Price, Mar 24 2011
See Kamada link - primecount.txt for terms, primesize.txt for discovery details including probable or proved primes - search on "10021".

Examples

			For k=3 we have 10^3+21 = 1000+21 = 1021, which is prime.
		

Crossrefs

Programs

  • Mathematica
    q=21; s=""; For[ a=q,a<=q,s="10^n+"<>ToString[ a ]<>":"; n=0; For[ i=1,i< 10^3,If[ PrimeQ[ 10^i+a ],n=1; s=s<>ToString[ i ]<>"," ]; i++ ]; If[ n>0,Print[ s ] ]; a++ ] (* Vladimir Joseph Stephan Orlovsky, May 06 2008 *)
  • PARI
    for(n=1,1e4,if(ispseudoprime(10^n+21),print1(n", "))) \\ Charles R Greathouse IV, Jul 20 2011

Extensions

a(6)=77 inserted by Vladimir Joseph Stephan Orlovsky, May 06 2008
a(13)=8007 from Dmitry Kamenetsky, Jul 12 2008
a(14)=25671 from Robert Price, Nov 08 2010
Edited by Ray Chandler, Dec 24 2010
a(15)=48003 from Robert Price, Dec 31 2010
a(16)=55811 from Robert Price, Jan 09 2011
a(17)=94983 from Robert Price, Mar 24 2011
a(18)=109615 from Lelio R Paula, added by Boyan Hu, Jul 05 2025
a(19)=135669 from Boyan Hu, Jul 05 2025

A062339 Primes whose sum of digits is 4.

Original entry on oeis.org

13, 31, 103, 211, 1021, 1201, 2011, 3001, 10111, 20011, 20101, 21001, 100003, 102001, 1000003, 1011001, 1020001, 1100101, 2100001, 10010101, 10100011, 20001001, 30000001, 101001001, 200001001, 1000000021, 1000001011, 1000010101, 1000020001, 1000200001, 1002000001, 1010000011
Offset: 1

Views

Author

Amarnath Murthy, Jun 21 2001

Keywords

Comments

Is this sequence (and its brothers A062337, A062341 and A062343) infinite?
10^A049054(m)+3 and 3*10^A056807(m)+1 are subsequences. A107715 (primes containing only digits from set {0,1,2,3}) is a supersequence. Terms not containing the digit 3 are either terms of A020449 (primes that contain digits 0 and 1 only) or of A106100 (primes with maximal digit 2) - and thus terms of these sequences' union A036953 (primes containing only digits from set {0,1,2}). - Rick L. Shepherd, May 23 2005

Examples

			3001 is a prime with sum of digits = 4, hence belongs to the sequence.
		

Crossrefs

Subsequence of A062338, A107288, and A107715 (primes with digits <= 3).
A159352 is a subsequence.
Cf. A000040 (primes), A052218 (digit sum = 4), A061239 (primes == 4 (mod 9)).
Cf. Primes p with digital sum equal to k: {2, 11 and 101} for k=2; this sequence (k=4), A062341 (k=5), A062337 (k=7), A062343 (k=8), A107579 (k=10), A106754 (k=11), A106755 (k=13), A106756 (k=14), A106757 (k=16), A106758 (k=17), A106759 (k=19), A106760 (k=20), A106761 (k=22), A106762 (k=23), A106763 (k=25), A106764 (k=26), A048517 (k=28), A106766 (k=29), A106767 (k=31), A106768 (k=32), A106769 (k=34), A106770 (k=35), A106771 (k=37), A106772 (k=38), A106773 (k=40), A106774 (k=41), A106775 (k=43), A106776 (k=44), A106777 (k=46), A106778 (k=47), A106779 (k=49), A106780 (k=50), A106781 (k=52), A106782 (k=53), A106783 (k=55), A106784 (k=56), A106785 (k=58), A106786 (k=59), A106787 (k=61), A107617 (k=62), A107618 (k=64), A107619 (k=65), A106807 (k=67), A244918 (k=68), A181321 (k=70).
Cf. A049054 (10^k+3 is prime), A159352 (these primes).
Cf. A056807 (3*10^k+1 is prime), A259866 (these primes).
Cf. A020449 (primes with digits 0 and 1), A036953 (primes with digits <= 2), A106100 (primes with largest digit = 2), A069663, A069664 (smallest resp. largest n-digit prime with minimum digit sum).

Programs

  • Magma
    [p: p in PrimesUpTo(800000000) | &+Intseq(p) eq 4]; // Vincenzo Librandi, Jul 08 2014
  • Maple
    N:= 20: # to get all terms < 10^N
    B[1]:= {1}:
    B[2]:= {2}:
    B[3]:= {3}:
    A:= {}:
    for d from 2 to N do
       B[4]:= map(t -> 10*t+1,B[3]) union  map(t -> 10*t+3,B[1]);
       B[3]:= map(t -> 10*t, B[3]) union map(t -> 10*t+1,B[2]) union map(t -> 10*t+2,B[1]);
       B[2]:= map(t -> 10*t, B[2]) union map(t -> 10*t+1,B[1]);
       B[1]:= map(t -> 10*t, B[1]);
       A:= A union select(isprime,B[4]);
    od:
    sort(convert(A,list)); # Robert Israel, Dec 28 2015
  • Mathematica
    Union[FromDigits/@Select[Flatten[Table[Tuples[{0,1,2,3},k],{k,9}],1],PrimeQ[FromDigits[#]]&&Total[#]==4&]] (* Jayanta Basu, May 19 2013 *)
    FromDigits/@Select[Tuples[{0,1,2,3},10],Total[#]==4&&PrimeQ[FromDigits[#]]&] (* Harvey P. Dale, Jul 23 2025 *)
  • PARI
    for(a=1,20,for(b=0,a,for(c=0,b,if(isprime(k=10^a+10^b+10^c+1),print1(k", "))))) \\ Charles R Greathouse IV, Jul 26 2011
    
  • PARI
    select( {is_A062339(p,s=4)=sumdigits(p)==s&&isprime(p)}, primes([1,10^7])) \\ 2nd optional parameter for similar sequences with other digit sums. M. F. Hasler, Mar 09 2022
    
  • PARI
    A062339_upto_length(L,s=4,a=List(),u=[10^(L-k)|k<-[1..L]])=forvec(d=[[1,L]|i<-[1..s]], isprime(p=vecsum(vecextract(u,d))) && listput(a,p),1); Vecrev(a) \\ M. F. Hasler, Mar 09 2022
    

Formula

Intersection of A052218 (digit sum 4) and A000040 (primes). - M. F. Hasler, Mar 09 2022

Extensions

Corrected and extended by Larry Reeves (larryr(AT)acm.org), Jul 06 2001
More terms from Rick L. Shepherd, May 23 2005
More terms from Lekraj Beedassy, Dec 19 2007

A108049 Integers k such that 10^k + 43 is a prime number.

Original entry on oeis.org

1, 5, 37, 253, 1129, 1441, 35393
Offset: 1

Views

Author

Julien Peter Benney (jpbenney(AT)ftml.net), Jun 01 2005

Keywords

Comments

a(8) > 10^5. - Robert Price, Nov 01 2013
See Kamada link - primecount.txt for terms, primesize.txt for discovery details including probable or proved primes - search on "10043".

Examples

			k=5 is a term because 10^5 + 43 = 100043, which is prime.
		

Crossrefs

Programs

Extensions

a(7)=35393 from Robert Price, Mar 16 2010
Edited by Ray Chandler, Dec 23 2010

A108052 Integers k such that 10^k+19 is a prime number.

Original entry on oeis.org

1, 3, 5, 7, 10, 11, 17, 59, 81, 108, 574, 629, 1069, 1759, 2063, 2682, 9174, 40929, 42457, 66033
Offset: 1

Views

Author

Julien Peter Benney (jpbenney(AT)ftml.net), Jun 01 2005

Keywords

Comments

Verified terms through 9174. - Robert Price, May 24 2010
See Kamada link - primecount.txt for terms, primesize.txt for discovery details including probable or proved primes - search on "10019".
No other terms <= 100,000. - Robert Price, Mar 03 2011

Examples

			n = 7 we have 10^7+19 = 10000000+19 = 10000019, which is prime.
		

Crossrefs

Programs

Extensions

a(17)=9174 from Ryan Propper, Jan 02 2008
Edited by Ray Chandler, Dec 23 2010
a(18)=40929 and a(19)=42457 from Robert Price, Dec 27 2010
a(20)=66033 from Robert Price, Jan 09 2011

A108054 Integers k such that 10^k+49 is prime.

Original entry on oeis.org

1, 2, 3, 5, 8, 17, 24, 32, 65, 66, 67, 79, 83, 98, 152, 260, 781, 1225, 1777, 2023, 2411, 3469, 5347, 10646, 11335, 13989, 14792, 16731, 19015, 29471, 39187, 41456, 80883, 102824, 154359, 216950, 294475
Offset: 1

Views

Author

Julien Peter Benney (jpbenney(AT)ftml.net), Jun 02 2005

Keywords

Comments

See Kamada link - primecount.txt for terms, primesize.txt for discovery details including probable or proved primes - search on "10049".
a(38) > 3*10^5. Robert Price, Jul 10 2023

Examples

			k = 8 ==> 10^8+49 = 100000049, which is prime.
		

Crossrefs

Programs

Extensions

a(23) from Ray G. Opao, Dec 13 2006
a(24)-a(31) from Robert Price, May 28 2010
Edited by Ray Chandler, Dec 23 2010
a(32) from Robert Price, Dec 27 2010
a(33) from Robert Price, Mar 03 2011
a(34)-a(37) from Robert Price, Jul 10 2023

A088275 Numbers k such that 10^k + 9 is prime.

Original entry on oeis.org

1, 2, 3, 4, 9, 18, 22, 45, 49, 56, 69, 146, 202, 272, 2730, 2841, 4562, 31810, 43186, 48109, 92691, 237670, 400310, 482706
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2003

Keywords

Comments

No others less than 9000. - Julien Peter Benney (jpbenney(AT)ftml.net), Jan 15 2005
No others less than 39254. - Dirk Augustin, Oct 24 2006
2730, 2841 and 4562 all give primes. - Joao da Silva (zxawyh66(AT)yahoo.com), Sep 30 2005
Verified existing terms. No other terms less than 40001. - Robert Price, Aug 14 2010
No other terms <= 100000. - Robert Price, Mar 03 2011
a(23) > 3*10^5. - Robert Price, Oct 26 2023

Examples

			4 is a member since 10^4 + 9 = 10009 is a prime.
		

Crossrefs

Programs

Formula

a(n) = A102008(n) + 1.

Extensions

a(8)-a(16) from Ray Chandler, Oct 10 2003
a(17) from Julien Peter Benney (jpbenney(AT)ftml.net), Jan 15 2005
a(18) (a PRP) found by Dirk Augustin, Oct 16 2006
a(19)-a(20) (probable primes), found with WinPFGW. No others less than 60400. - Jason Earls, Dec 22 2007
a(21) from Robert Price, Mar 03 2011
a(22) from Robert Price, Oct 26 2023
a(23) from Boyan Hu, Jun 15 2025
a(24) from Boyan Hu, Jun 24 2025

A107083 Integers k such that 10^k + 31 is prime.

Original entry on oeis.org

1, 2, 3, 14, 18, 44, 54, 89, 469, 2060, 2985, 6197, 16452, 19393, 21205, 49657, 74670, 76374
Offset: 1

Views

Author

Julien Peter Benney (jpbenney(AT)ftml.net), Jun 08 2005

Keywords

Comments

The next term, if one exists, is >100000. - Robert Price, Apr 26 2011
See Kamada link - primecount.txt for terms, primesize.txt for discovery details including proofs of primality - search on "10031".

Examples

			For k = 3 we get 10^3 + 31 = 1000 + 31 = 1031, which is prime.
		

Crossrefs

Programs

Extensions

16452 and 19393 from Robert Price, Mar 22 2010
Additional term (21205) from Robert Price, May 24 2010
Missing term (6197) added by Robert Price, Dec 07 2010
Edited by Ray Chandler, Dec 23 2010
a(16)=49657 from Robert Price, Dec 31 2010
a(17)=74670 from Robert Price, Jan 29 2011
a(18)=76374 from Robert Price, Mar 03 2011

A088274 Numbers k such that 10^k + 7 is prime.

Original entry on oeis.org

1, 2, 4, 8, 9, 24, 60, 110, 134, 222, 412, 700, 999, 1383, 5076, 5543, 6344, 14600, 15093, 21717, 23636, 30221, 50711, 221628, 350071, 371696, 487291, 995256, 1043372
Offset: 1

Views

Author

Amarnath Murthy, Sep 28 2003

Keywords

Comments

No other terms less than 59500.
No other terms <= 100000. - Robert Price, Mar 03 2011
a(28) > 500000. - Alfred Reich, Jun 10 2021
a(29) > 1000000. - Alfred Reich, Nov 20 2021
a(30) > 1075000. - Alfred Reich, Jan 10 2022

Examples

			8 is a term since 10^8 + 7 = 100000007 is a prime.
		

Crossrefs

Programs

Formula

a(n) = A102007(n) + 1.

Extensions

a(7)-a(14) from Ray Chandler, Oct 09 2003
a(15)-a(19) from Robert G. Wilson v, Jan 18 2005
Corrected and extended by Jason Earls, Nov 27 2007 and Dec 07 2007. (14600 was missing and 23636 and 50711 are new. These are presently only probable primes, found with WinPFGW.)
Missing term 30221 added by Herman Jamke (hermanjamke(AT)fastmail.fm), Jan 02 2008
a(24)-a(27) from Alfred Reich, Jun 10 2021
a(28) from Alfred Reich, Nov 20 2021
a(29) from Alfred Reich, Jan 10 2022

A108312 Integers n such that 10^n + 27 is prime.

Original entry on oeis.org

1, 2, 83, 167, 242, 14081, 65537
Offset: 1

Views

Author

Julien Peter Benney (jpbenney(AT)ftml.net), Jun 29 2005

Keywords

Comments

The next term, if one exists, is >100000. - Robert Price, May 24 2010
See Kamada link - primecount.txt for terms, primesize.txt for discovery details including probable or proved primes - search on "10027".

Examples

			For n=2 we have 10^2 + 27 = 100 + 27 = 127, which is prime.
		

Crossrefs

Programs

  • Mathematica
    Do[ If[ PrimeQ[10^n + 27], Print[n]], {n, 3000}] (* Robert G. Wilson v, Jul 01 2005 *)

Extensions

a(6)=14081 from Robert Price, Mar 22 2010
Edited by Ray Chandler, Dec 23 2010
a(7)=65537 from Robert Price, Jan 29 2011
Showing 1-10 of 30 results. Next