OFFSET
1,1
EXAMPLE
3(2) - 1(2) = 2 (prime) and 3(2) + 1(2) = 4 (nonprime), so 3 is in the sequence.
17(7) - 10(7) = 7 (prime) and 17(7) + 10(7) = 27 (nonprime), so 17 is in the sequence.
37(12) - 18(12) = 19 (prime) and 37(12) + 18(12) = 55 (nonprime), so 37 is in the sequence.
53(16) - 24(16) = 29(prime) and 53(16) + 24(16) = 77 (nonprime), so 53 is in the sequence.
71(20) - 28(20) = 43(prime) and 71(20) + 28(20) = 99 (nonprime), so 71 is in the sequence.
MAPLE
A141468 := proc(n) option remember ; local a; if n = 1 then 0 ; else for a from procname(n-1)+1 do if not isprime(a) then RETURN(a) ; fi; od; fi; end: for n from 1 to 700 do p := ithprime(n) ; if isprime( p- A141468(n)) and not isprime(p+A141468(n)) then printf("%d, ", p) ; fi; od: # R. J. Mathar, Jan 17 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 15 2008
EXTENSIONS
227, 619, 1039, etc. removed, and 797, 1087, etc. added, by R. J. Mathar, Jan 17 2009
Better definition from Michel Marcus, Aug 07 2017
STATUS
approved