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.

A120851 Numbers n such that n is prime and is equal to the product of the first k primes minus the sum of the first k primes, for some k.

Original entry on oeis.org

193, 29989, 13082761331669749
Offset: 1

Views

Author

Carlos Alves, Jul 08 2006

Keywords

Comments

It is in the spirit of A096345 (only for 2 consecutive primes).
The corresponding values of k are 4, 6, 14, 548, 1190, ... a(4) = 2.452... * 10^1691, a(5) = 1.263... x 10^4142. - Amiram Eldar, Dec 19 2018

Examples

			193 = -(2+3+5+7)+(2*3*5*7) and 193 is prime.
		

Crossrefs

Programs

  • Mathematica
    tb = {}; Do[pq = -Plus @@ Prime[Range[1, k]] + Times @@ Prime[Range[1, k]]; If[PrimeQ[pq], AppendTo[tb, pq]], {k, 1, 200}]; tb

Extensions

The next term is too large to include.