OFFSET
1,2
COMMENTS
Encoded primes with LSD 1 and (SOD-1)/3 integer, (LSD, least significant digit; SOD, sum of digits). Divide any such number by 30, if the whole number portion of the quotient is in the sequence, the number is prime. Example: 2671, with LSD 1 and (SOD-1)/3 = 2 (integer); Then 2671/30 = 89.033, or 89, which is in the sequence, and thus 2671 is prime. - Ki Punches, Mar 18 2009
EXAMPLE
If n=99 then 30*n + 1 = 2971 (prime).
PROG
(PARI) is(n)=isprime(30*n+1) \\ Charles R Greathouse IV, Feb 17 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Parthasarathy Nambi, Oct 21 2005
EXTENSIONS
Extended by Ray Chandler, Apr 07 2009
STATUS
approved