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

A099228 Primes of the form m^k-k, with m and k > 1.

Original entry on oeis.org

2, 5, 7, 23, 47, 61, 79, 167, 223, 359, 439, 503, 509, 727, 839, 997, 1019, 1087, 1223, 1367, 1847, 2207, 2399, 2741, 3023, 3719, 3967, 4093, 4759, 5039, 5623, 5927, 6553, 7919, 8179, 8647, 10607, 11447, 13687, 14159, 14639, 15619, 16127, 17159, 17573
Offset: 1

Views

Author

T. D. Noe, Oct 06 2004

Keywords

Comments

It appears that primes of this form are much more common than primes of the form m^k+k (A099227).

Crossrefs

Cf. A057897 (numbers of the form m^k-k, with m and k > 1), A084746 (least k such that n^k-k is prime).
Cf. A099227.

Programs

  • Mathematica
    nLim=32000; lst={}; Do[k=2; While[n=m^k-k; n<=nLim, AppendTo[lst, n]; k++ ], {m, 2, Sqrt[nLim]}]; Select[Union[lst], PrimeQ]

A178327 Numbers k such that k^p+p is prime, where p is product of the digits of k.

Original entry on oeis.org

1, 21, 6617, 12131, 12441, 114917, 121221, 124281, 125121, 145581, 172631, 182121, 191213, 211551, 221211, 221421, 241213, 293143, 421531, 421821
Offset: 1

Views

Author

Farideh Firoozbakht, May 29 2010

Keywords

Comments

All terms are odd. Large numbers corresponding to some terms are probable
prime. There is no further term up to 27500.
254597 < a(18) <= 293143. a(19) <= 421531. a(20) <= 421821. - Donovan Johnson, Aug 09 2010

Examples

			21^(2*1)+(2*1) is prime so 21 is a term.
		

Crossrefs

Programs

  • Mathematica
    Do[p=Apply[Times, IntegerDigits[n]]; If[PrimeQ[n^p+p], Print[n]],
    {n, 1, 27501, 2}]

Extensions

No more terms less than 56600. - Robert G. Wilson v, Jul 27 2010
a(6)-a(17) from Donovan Johnson, Aug 09 2010
a(18)-a(20) from Michael S. Branicky, Jun 23 2023

A344990 Primes of the form m^k +- k, with m,k > 1.

Original entry on oeis.org

2, 5, 7, 11, 23, 37, 47, 61, 67, 79, 83, 167, 223, 227, 359, 439, 443, 503, 509, 521, 727, 839, 997, 1019, 1087, 1091, 1223, 1367, 1523, 1847, 2027, 2207, 2399, 2741, 3023, 3251, 3719, 3967, 4093, 4099, 4759, 5039, 5623, 5927, 6553, 6563, 6569, 7919, 8179
Offset: 1

Views

Author

Luke Voyles, Jun 05 2021

Keywords

Examples

			    2 =  2^2 - 2,
    5 =  2^3 - 3,
    7 =  3^2 - 2,
   11 =  3^2 + 2,
   23 =  5^2 - 2,
   37 =  2^5 + 5,
   47 =  7^2 - 2,
   61 =  4^3 - 3,
   67 =  4^3 + 3,
   79 =  9^2 - 2,
   83 =  9^2 + 2,
  167 = 13^2 - 2,
  223 = 15^2 - 2,
  227 = 15^2 + 2,
  359 = 19^2 - 2,
  439 = 21^2 - 2,
  443 = 21^2 + 2,
  503 =  2^9 - 9,
  509 =  8^3 - 3,
  521 =  2^9 + 9,
  ...
		

Crossrefs

Union of A099227 and A099228.
Showing 1-3 of 3 results.