OFFSET
1,1
REFERENCES
S. R. Finch. Mathematical Constants. Cambridge University Press, 2003 ISBN 0-521-81802-2 p. 29.
Stefan Kraemer. Eulers constant and related numbers, preprint, 2005.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
Stefan Kraemer, Euler's Constant 0.577... Its Mathematics and History
MAPLE
H:= proc(n) H(n):= 1/n+`if`(n=1, 0, H(n-1)) end:
a:= proc(n) option remember; local c, p; Digits := 1000;
c:= evalf(1-gamma);
p:=`if`(n=1, 1, a(n-1));
do p:= nextprime(p);
if H(p)-add(iquo(p, i), i=1..p)/p>c
then return p fi
od
end:
seq(a(n), n=1..70); # Alois P. Heinz, Jun 14 2013
MATHEMATICA
Reap[For[p = 2, p < 1000, p = NextPrime[p], If[Mean[FractionalPart /@ (p/Range[p])] > 1-EulerGamma, Sow[p]]]][[2, 1]] (* Jean-François Alcover, Dec 28 2021 *)
PROG
(PARI) lista(nn) = {forprime(p=2, nn, if (sum (i=1, p, p/i - floor(p/i))/p > 1- Euler, print1(p, ", ")); ); } \\ Michel Marcus, Jun 14 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefan Krämer, Sep 01 2005
STATUS
approved