OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000 (first 400 terms from Harvey P. Dale)
FORMULA
EXAMPLE
5!=2^3 * 3 * 5, 23!=2^19 * 3^9 * 5^4 * 7^3 * 11^2 * 13 * 17 * 19 * 23, 71!=2^67 * 3^32 * 5^16 * 7^11 * 11^6 * 13^5 * 17^4 * 19^3 * 23^3 * 29^2 * 31^2 * 37 * 41 * 43 * 47 * 53 * 59 * 61 * 67 * 71.
MAPLE
for n from 3 to 10^4 do if sum(floor(n/(2^i)), i=1..15) = prevprime(n) and isprime(n) then printf(`%d, `, n) fi; od:
MATHEMATICA
f[n_] := (t = 0; p = 2; While[s = Floor[n/p]; t = t + s; s > 0, p *= 2]; t); Do[ If[ f[Prime[n]] == Prime[n - 1], Print[ Prime[n]]], {n, 2, 10^3} ]
Select[Partition[Prime[Range[510]], 2, 1], IntegerExponent[#[[2]]!, 2] == #[[1]]&] [[All, 2]] (* Harvey P. Dale, Feb 22 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Sep 29 2001
EXTENSIONS
More terms from James A. Sellers, Oct 01 2001
STATUS
approved