OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
FORMULA
For n>=2: a(n) = 2*n if n prime; otherwise a(n) = n.
PROG
(PARI) { for (n=1, 1000, if (isprime(n), a=2*n, a=n); if (n==1, a=4); write("b066560.txt", n, " ", a) ) } \\ Harry J. Smith, Mar 02 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Dec 17 2001
EXTENSIONS
More terms and formula from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Dec 24 2001
STATUS
approved