OFFSET

1,1

COMMENTS

A056915(n) mod 5228905 mod 17 is a bijection from the set of the first 17 terms of A056915 to {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}.

From an algorithm based on strong pseudoprimes to bases 2,3 and 5, and a table T with the first 17 terms of A056915, we can test if n is prime, odd n, 1 < n < 42550716781. When n is a prime, we check if n belongs to T. A fast way to do that is to compute i = n mod 5228905 mod 17 and compare n with T[i]. If n is not equal to T[i], n is prime.

Terms computed using table by Charles R Greathouse IV. See A056915.

LINKS

CROSSREFS

KEYWORD

nonn

AUTHOR

Washington Bomfim, Mar 02 2012

STATUS

approved