login
Numbers n such that 2*n + 101 is prime.
0

%I #12 Sep 08 2022 08:45:16

%S 0,1,3,4,6,13,15,18,19,24,25,28,31,33,36,39,40,45,46,48,49,55,61,63,

%T 64,66,69,70,75,78,81,84,85,88,90,91,96,103,105,106,108,115,118,123,

%U 124,126,129,133,136,139,141,144,148,150,154,159,160,165,166,169,171,174

%N Numbers n such that 2*n + 101 is prime.

%C 2 is the smallest one digit prime and 101 is the smallest three digit prime.

%e If n=1, then 2*1 + 101 = 103 (prime)

%e If n=49, then 2*49 + 101 = 199 (prime)

%e If n=96, then 2*96 + 101 = 293 (prime)

%o (Magma) [n: n in [0..1000] | IsPrime(2*n + 101)] // _Vincenzo Librandi_, Nov 17 2010

%o (PARI) is(n)=isprime(2*n+101) \\ _Charles R Greathouse IV_, Jun 13 2017

%K nonn,easy

%O 1,3

%A _Parthasarathy Nambi_, Feb 07 2005