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.

A073862 Difference between the largest and the smallest n-digit prime.

This page as a plain text file.
%I A073862 #17 Mar 21 2024 18:21:23
%S A073862 5,86,896,8964,89984,899980,8999988,89999970,899999930,8999999960,
%T A073862 89999999958,899999999986,8999999999932,89999999999936,
%U A073862 899999999999958,8999999999999900,89999999999999936,899999999999999986,8999999999999999958,89999999999999999938
%N A073862 Difference between the largest and the smallest n-digit prime.
%H A073862 Alois P. Heinz, <a href="/A073862/b073862.txt">Table of n, a(n) for n = 1..1000</a>
%F A073862 a(n) = A003618(n) - A003617(n).
%e A073862 a(3) = 997 - 101 = 896.
%e A073862 a(1) = 5 because 7-2 = 5.
%p A073862 seq(prevprime(10^n)-nextprime(10^(n-1)), n=1..21); # _Emeric Deutsch_, Mar 28 2005
%t A073862 Table[NextPrime[10^(n+1),-1]-NextPrime[10^n],{n,0,18}] (* _Harvey P. Dale_, May 04 2016 *)
%Y A073862 Cf. A003617, A003618.
%K A073862 base,nonn
%O A073862 1,1
%A A073862 _Amarnath Murthy_, Aug 15 2002
%E A073862 More terms from _Emeric Deutsch_, Mar 28 2005