OFFSET
1,2
COMMENTS
1. a(p) = p, where p is a prime, by definition. 2. If 2^k -1 is a Mersenne prime then a(2^(k-1)) = 2^k -1 else a(2^(k-1))= 0. 3. a(p^(2k+1)) = 0, if p is prime.
EXAMPLE
a(28) = 53 because 28+14+7+4 = 53 is prime.
PROG
(PARI) a(n) = {d = divisors(n); p = 0; forstep (i = #d, 1, -1, p += d[i]; if (isprime(p), return (p)); ); return (0); } \\ Michel Marcus, Sep 17 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jul 03 2003
EXTENSIONS
Corrected and extended by David Wasserman, Jan 26 2005
STATUS
approved