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

A113076 Smallest prime obtained by appending one or more 7's to n, -1 if no such prime exists.

Original entry on oeis.org

17, 277, 37, 47, 577, 67, -1, 877, 97, 107, 11777, 127, 137, -1, 157, 167, 1777, 1877, 197, 20777777, -1, 227, 2377, 2477, 257, 2677, 277, -1, 29777777777777777777777777777777777777777777777777, 307, 317, 3277777
Offset: 1

Views

Author

Parthasarathy Nambi, Jan 03 2006

Keywords

Examples

			a(17) = 1777 is the smallest prime obtained by appending two 7s to 17.
		

Crossrefs

Programs

  • Mathematica
    For[n = 1, n < 50, n++, If[n/7 <= Floor[n/7], k := 1; While[Not[PrimeQ[10^k*n + (10^k - 1)*7/9]], k++ ]; Print[10^k*n + (10^k - 1)*7/9]]] (* Stefan Steinerberger, Jan 27 2006 *)
    Select[Table[First[Select[Rest[FromDigits/@Table[PadRight[{x},n,7],{n,50}]],PrimeQ]],{x,35}],NumberQ]//Quiet  (* Harvey P. Dale, Jan 16 2011 *)

Extensions

More terms from Stefan Steinerberger, Jan 27 2006
Name and Data corrected by Toshitaka Suzuki, May 21 2023

A372056 Smallest prime obtained by appending one or more 3's to n, or -1 if no such prime exists.

Original entry on oeis.org

13, 23, -1, 43, 53, -1, 73, 83, -1, 103, 113, -1, 1333333333333333, 1433, -1, 163, 173, -1, 193, 20333, -1, 223, 233, -1, 2533333333, 263, -1, 283, 293, -1, 313, 323333, -1, 3433, 353, -1, 373, 383, -1
Offset: 1

Views

Author

Toshitaka Suzuki, Mar 30 2024

Keywords

Comments

Next term is 40 followed by 483 3's and is too large to display here (see the b-file).

Examples

			For n = 13, a(13) = 1333333333333333 is a prime (but 133,1333,13333 etc. are not primes).
		

Crossrefs

See A112394 for another version.

Extensions

Edited by N. J. A. Sloane, Apr 24 2024
Showing 1-2 of 2 results.