|
|
A309238
|
|
Non-prime-square numbers equal to the sum of squares of consecutive primes from the least prime factor to the largest prime factor.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
So-called 2-straddled numbers; 1-straddled numbers are in A055233.
|
|
LINKS
|
|
|
EXAMPLE
|
9634877 = 7 * 41 * 59 * 569 = 7^2 + 11^2 + 13^2 + ... + 569^2.
|
|
PROG
|
(PARI) isok(n) = if (isprimepower(n) != 2, if (n>1, my(f=factor(n)[, 1], s=0); forprime(p=vecmin(f), vecmax(f), s+= p^2); s == n)); \\ Michel Marcus, Jul 18 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more,bref
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|