OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = Prime(Lucky(1)) - Lucky(Prime(1)) = Prime(1) - Lucky(2) = 2 - 3 = -1.
a(2) = Prime(Lucky(2)) - Lucky(Prime(2)) = Prime(3) - Lucky(3) = 5 - 7 = -2.
a(3) = Prime(Lucky(3)) - Lucky(Prime(3)) = Prime(7) - Lucky(5) = 17 - 13 = 4.
PROG
(Perl) use ntheory ":all"; say "$_ ", nth_prime(nth_lucky($_))-nth_lucky(nth_prime($_)) for 1..20; # Dana Jacobsen, Dec 21 2018
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Jonathan Vos Post, May 08 2007
EXTENSIONS
Entries corrected starting at a(10) by R. J. Mathar, Oct 22 2010
STATUS
approved