OFFSET
1,1
FORMULA
EXAMPLE
p = 3; 3 + ceiling(sqrt(3)) = 5, which is prime. p = 5; 5 + floor(sqrt(5)) = 7, which is prime.
MAPLE
for n from 1 to 820 do p := ithprime(n) ; f := p+floor(sqrt(p)) ; c := p+ceil(sqrt(p)) ; if isprime(f) or isprime(c) then printf("%d, ", p) ; fi; od: # R. J. Mathar, Oct 31 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Kyle D. Balliet, Oct 24 2008, Nov 06 2008
EXTENSIONS
2 terms inserted and sequence extended by R. J. Mathar, Oct 31 2008
STATUS
approved