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.

A212290 Difference between the smallest 10^n-bit prime and 2^(10^n-1).

Original entry on oeis.org

9, 255, 1239, 5895, 221961
Offset: 1

Views

Author

Keywords

Comments

a(5) found by Serge Batalov, Jun 11 2012.

Examples

			2^99+255 is the smallest 100-bit prime, 2^999+1239 is the smallest 1000-bit prime, etc.
		

Crossrefs

Binary analog of A096548.

Programs

  • PARI
    a(n)=nextprime(2^(10^n-1))-2^(10^n-1)

A340902 Distance from the largest prime with less than 10^n decimal digits to 10^(10^n-1).

Original entry on oeis.org

63, 621, 6101, 11333, 59511, 172473
Offset: 1

Views

Author

Jeppe Stig Nielsen, Jan 26 2021

Keywords

Comments

The prime number related to a(n) is the prime immediately preceding the prime related to A096548(n).
a(5) and a(6) appear to have been first found by Patrick De Geest.

Examples

			a(4) = 11333 because 10^9999 - 11333 is the largest prime not exceeding 10^9999.
a(5) = 59511 because 10^99999 - 59511 is the largest prime not exceeding 10^99999.
		

Crossrefs

Formula

a(n) = 10^(10^n-1) - precprime(10^(10^n-1)) = A064722(10^A002283(n)).
Showing 1-2 of 2 results.