OFFSET
1,5
FORMULA
a(n+1) - a(n) = A027833(n) - 2, n > 1. [R. J. Mathar, Aug 29 2009]
EXAMPLE
a(1)=1 counts the isolated prime 2, which smaller than 3;
a(2)=1 counts the isolated prime 2, which is smaller than 5;
a(5)=2 counts the isolated primes 2 and 23, which are smaller than 29;
a(6)=3 counts 2, 23 and 37, which are smaller than 41.
MAPLE
read("transforms3") ; tp := BFILETOLIST("b001359.txt") ;
A162309 := proc(n) global tp; a := 0 ; for j from 2 to op(n, tp)-1 do if isprime(j) then if ( j in tp ) or (j-2) in tp then ; else a :=a +1; fi; fi; od: a ; end:
seq(A162309(n), n=1..130 ); # R. J. Mathar, Aug 29 2009
MATHEMATICA
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 01 2009
EXTENSIONS
53 replaced with 54, 100 removed twice, etc., by R. J. Mathar, Aug 29 2009
STATUS
approved