OFFSET
1,2
EXAMPLE
For p=2, p+p^2+p^3 = 14 = A181149(1), so 14 is the first value not to be in the sequence.
PROG
(PARI) nbt(n) = {nb = 0; forprime(p=2, n, forprime(q=2, n, if (p+q^2 > n, break); forprime(r=2, n, if (p+q^2+r^3 > n, break); if (p+q^2+r^3 == n, nb++); ); ); ); nb; }
isok(n) = nbt(n)==0;
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Sep 05 2015
STATUS
approved