OFFSET
1,1
COMMENTS
Used in a primality test.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Chris Caldwell, Prime Test.
MAPLE
p:=proc(n) if isprime(n)=true and n mod 13 = 6 then n else fi end:seq(p(n), n=1..4500); # Emeric Deutsch, Feb 28 2005
MATHEMATICA
Select[Range[6, 20000, 13], PrimeQ] (* Vladimir Joseph Stephan Orlovsky, Jun 18 2011 *)
PROG
(Magma) [p: p in PrimesUpTo(4500) | p mod 13 eq 6 ]; // Vincenzo Librandi, Aug 14 2012
(PARI) is(n)=isprime(n) && n%13==6 \\ Charles R Greathouse IV, Jul 01 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jun Mizuki (suzuki32(AT)sanken.osaka-u.ac.jp), Apr 26 2004
EXTENSIONS
Corrected and extended by Emeric Deutsch, Feb 28 2005
STATUS
approved