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-13 of 13 results.

A076681 Numbers k such that 5*k! + 1 is prime.

Original entry on oeis.org

2, 3, 5, 10, 11, 12, 17, 34, 74, 136, 155, 259, 271, 290, 352, 479, 494, 677, 776, 862, 921, 932, 2211, 3927, 4688, 12567
Offset: 1

Views

Author

Phillip L. Poplin (plpoplin(AT)bellsouth.net), Oct 25 2002

Keywords

Comments

a(26) > 4700. - Jinyuan Wang, Feb 04 2020

Examples

			k = 3 is here because 5*3! + 1 = 31 is prime.
		

Crossrefs

Programs

  • PARI
    is(k) = ispseudoprime(5*k!+1); \\ Jinyuan Wang, Feb 04 2020

Extensions

a(25) from Jinyuan Wang, Feb 04 2020
a(26) from Michael S. Branicky, Jul 03 2024

A062698 Primes of form 2*k! + 1.

Original entry on oeis.org

3, 5, 13, 241, 958003201, 12804747411456001, 20666295932772289859333302675046400000001, 3102237506574764560448486032938606422126519440033972224000000000001, 8549766568120051128596027506778799299380687576733627449344000000000001
Offset: 1

Views

Author

Jason Earls, Jul 10 2001

Keywords

Crossrefs

Programs

  • Mathematica
    lst={};Do[p=2*n!+1;If[PrimeQ[p],AppendTo[lst,p]],{n,0,5!}];lst (* Vladimir Joseph Stephan Orlovsky, Jan 28 2009 *)
    Select[2*Range[200]!+1,PrimeQ] (* Harvey P. Dale, Oct 26 2013 *)
  • PARI
    for(n=1,55, if(isprime(2*n!+1),print(2*n!+1)))
    
  • PARI
    { n=0; f=1; for (m=1, 10^5, f*=m; if(isprime(a=2*f + 1), write("b062698.txt", n++, " ", a); if (n==12, break)) ) } \\ Harry J. Smith, Aug 09 2009

Formula

a(n) = A052898(A051915(n+1)). - Elmo R. Oliveira, Apr 16 2025

Extensions

One additional term from Harvey P. Dale, Oct 26 2013

A051800 Numbers k such that 1 plus twice the product of the first k primes is also a prime.

Original entry on oeis.org

1, 2, 3, 4, 5, 11, 18, 23, 26, 30, 80, 120, 148, 220, 395, 776, 884, 977, 3535, 3927
Offset: 1

Views

Author

Labos Elemer, Dec 20 1999

Keywords

Examples

			5 is in the sequence because 2*(2*3*5*7*11) + 1 = 4621 is prime.
		

Crossrefs

2*A002110(n)+1 is prime. Cf. A051887, A051915.

Programs

  • Mathematica
    Position[2#+1&/@FoldList[Times,Prime[Range[800]]],?PrimeQ]//Flatten (* _Harvey P. Dale, Oct 09 2018 *)
  • PARI
    isok(k) = isprime(1+2*prod(j=1, k, prime(j))); \\ Michel Marcus, May 28 2018
    
  • Python
    from sympy import isprime, nextprime
    def afind(limit):
        p, primorialk = 2, 2
        for k in range(1, limit+1):
            if isprime(2*primorialk + 1):
                print(k, end=", ")
            p = nextprime(p)
            primorialk *= p
    afind(400) # Michael S. Branicky, Dec 24 2021

Extensions

More terms from Harvey P. Dale, Oct 09 2018
a(17)-a(18) from Michael S. Branicky, Dec 24 2021
a(19)-a(20) from Michael S. Branicky, May 30 2023
Previous Showing 11-13 of 13 results.