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

A280895 For any n>=0, least prime k = p^d-2*n, where p is a prime and d is its number of digits.

Original entry on oeis.org

2, 3, 3, 163, 113, 1030291, 109, 107, 2571337, 103, 101, 2248069, 97, 263, 1442869, 139, 89, 1225009, 2685583, 83, 2571313, 79, 317, 2571307, 73, 71, 1224991, 67, 113, 3307891, 61, 59, 104633567005988371387, 103, 53, 1224973, 97, 47, 1224967, 43, 41, 1030219, 37
Offset: 0

Views

Author

Paolo P. Lava, Jan 10 2017

Keywords

Examples

			a(5) = 1030291 because 1030291 is the least prime such that 101^3 - 2*5 = 1030301 - 10 = 1030291.
		

Crossrefs

Programs

  • Maple
    P:=proc(q) local a,b,k,n; for n from 0 to q do for k from 1 to q do a:=ithprime(k);
    b:=a^(ilog10(a)+1)-2*n; if isprime(b) then lprint(n,b); break; fi; od; od; end: P(1000);
Showing 1-1 of 1 results.