OFFSET
2,1
LINKS
Rémy Sigrist, Table of n, a(n) for n = 2..10000
FORMULA
EXAMPLE
For n = 8:
- floor(8/1) = 8 is not a prime number,
- floor(8/2) = 4 is not a prime number,
- floor(8/3) = 2 is a prime number,
- hence a(8) = 2.
PROG
(PARI) a(n) = for (k=1, oo, if (isprime(n\k), return (n\k)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Feb 02 2020
STATUS
approved