

A246965


Numbers n such that 19*n(n+19) is a prime.


1



2, 4, 5, 6, 7, 11, 12, 14, 15, 16, 21, 25, 26, 27, 29, 30, 32, 34, 37, 39, 40, 41, 44, 46, 47, 49, 50, 54, 55, 60, 62, 65, 67, 69, 71, 72, 77, 81, 84, 85, 89, 90, 91, 92, 96, 105, 106, 107, 111, 112, 116, 117, 120, 124, 127, 131, 132, 134, 135, 137, 145, 146
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


LINKS



FORMULA



EXAMPLE

17 = (19*2)(19+2) is prime, so 2 is a term.


MATHEMATICA



PROG

(PHP)
for($num=1; $num<x; $num++)
{
$num2=$i;
$finalnumber=($num2*19)($num2+19);
//gmp_nextprime will find a primenumber greater than the given number
$prime=gmp_nextprime($finalnumber1);
if($prime==$finalnumber)
{
$sequence=$sequence.", ".$prime;
}
}
echo $sequence;
(PARI) lista(nn) = {for (n=1, nn, if (isprime(18*n19), print1(n, ", ")); ); } \\ Michel Marcus, Sep 09 2014
(Sage) [n for n in (2..200) if is_prime(18*n19)] # Bruno Berselli, Sep 09 2014


CROSSREFS



KEYWORD

nonn


AUTHOR



STATUS

approved



