login
Numbers n such that 235*n + 1 is prime.
0

%I #10 Sep 08 2022 08:45:25

%S 4,10,16,18,22,24,28,36,42,66,70,72,88,94,102,112,120,126,148,150,154,

%T 186,190,192,196,214,232,238,240,252,256,258,268,282,286,300,318,328,

%U 330,340,352,358,366,370,372,408,412,430,436,438,450,462,472,478,490

%N Numbers n such that 235*n + 1 is prime.

%e If n=94 then 235*n + 1 = 22091 (prime).

%t Select[Range[500], PrimeQ[235*# + 1] &] (* _Stefan Steinerberger_, Jul 26 2006 *)

%o (Magma) [ n: n in [0..500] | IsPrime(235*n + 1) ] // _Vincenzo Librandi_, Jan 31 2011

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

%Y Cf. A120345, A120344.

%K nonn,less,easy

%O 1,1

%A _Parthasarathy Nambi_, Jul 26 2006

%E More terms from _Stefan Steinerberger_, Jul 26 2006