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.
%I A057704 #84 Jul 16 2025 10:05:05 %S A057704 2,3,5,6,13,24,66,68,167,287,310,352,564,590,620,849,1552,1849,67132, %T A057704 85586,234725,334023,435582,446895 %N A057704 Primorial - 1 prime indices: integers m such that the m-th primorial minus 1 is prime. %C A057704 There are two versions of "primorial": this is using the definition in A002110. - _Robert Israel_, Dec 30 2014 %C A057704 As of 28 February 2012, the largest known primorial prime is A002110(85586) - 1 with 476311 digits, found by the PrimeGrid project (see link). - _Dmitry Kamenetsky_, Aug 11 2015 %D A057704 James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 114. %H A057704 Chris K. Caldwell, <a href="https://t5k.org/primes/search.php?Description=%5E[[:digit:]]{1,}%23-1&Style=HTML">Prime Pages: Database Search</a> %H A057704 Chris K. Caldwell, <a href="https://t5k.org/top20/page.php?id=5">The top 20: primorial primes</a> %H A057704 SÃlvia Casacuberta, <a href="https://arxiv.org/abs/1906.07652">On the divisibility of binomial coefficients</a>, arXiv:1906.07652 [math.NT], 2019. Mentions this sequence. %H A057704 Benny Lim, <a href="https://www.parabola.unsw.edu.au/2010-2019/volume-54-2018/issue-3/article/prime-numbers-generated-highly-composite-numbers">Prime Numbers Generated From Highly Composite Numbers</a>, Parabola (2018) Vol. 54, Issue 3. %H A057704 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/IntegerSequencePrimes.html">Integer Sequence Primes</a> %H A057704 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PrimorialPrime.html">Primorial Prime</a> %H A057704 Wikipedia, <a href="https://en.wikipedia.org/wiki/Primorial_prime">Primorial prime</a> %F A057704 a(n) = A000720(A006794(n)). %F A057704 a(n) = primepi(A006794(n)). %e A057704 The 6th primorial is A002110(6) = 2*3*5*7*11*13 = 30030, and 30030 - 1 = 30029 is a prime, so 6 is in the sequence. %p A057704 P:= 1: %p A057704 p:= 1: %p A057704 count:= 0: %p A057704 for n from 1 to 1000 do %p A057704 p:= nextprime(p); %p A057704 P:= P*p; %p A057704 if isprime(P-1) then %p A057704 count:= count+1; %p A057704 A[count]:= n; %p A057704 fi %p A057704 od: %p A057704 seq(A[i],i=1..count); # _Robert Israel_, Dec 25 2014 %t A057704 a057704[n_] := %t A057704 Flatten@Position[ %t A057704 Rest[FoldList[Times, 1, Prime[Range[n]]]] - 1, _Integer?PrimeQ]; a057704[500] (* _Michael De Vlieger_, Dec 25 2014 *) %o A057704 (PARI) lista(nn) = {s = 1; for(k=1, nn, s *= prime(k); if(ispseudoprime(s - 1), print1(k, ", ")); ); } \\ _Altug Alkan_, Dec 08 2015 %o A057704 (PARI) is(n) = ispseudoprime(prod(k=1, n, prime(k)) - 1); \\ _Altug Alkan_, Dec 08 2015 %Y A057704 Cf. A006794 (Primorial -1 primes: Primes p such that -1 + product of primes up to p is prime). %Y A057704 Cf. A057705, A014545, A005234, A002110, A057706. %K A057704 nonn,more %O A057704 1,1 %A A057704 _Labos Elemer_, Oct 24 2000 %E A057704 Corrected by Holzer Werner, Nov 28 2002 %E A057704 a(19)-a(20) from _Eric W. Weisstein_, Dec 08 2015 (Mark Rodenkirch confirms based on saved log files that all p < 700,000 have been tested) %E A057704 a(21) from _Jeppe Stig Nielsen_, Oct 19 2021 %E A057704 a(22)-a(24) from _Jeppe Stig Nielsen_, Dec 16 2024