login
Numbers n such that 911*n - 11 is prime.
2

%I #18 Oct 20 2023 06:46:48

%S 2,14,38,48,72,80,108,114,138,140,152,162,164,192,204,210,222,230,240,

%T 252,272,278,290,300,314,320,324,342,344,378,380,384,402,428,432,458,

%U 474,488,498,500,530,552,554,558,612,614,618,624,650,672,678,698,702

%N Numbers n such that 911*n - 11 is prime.

%C 11 and 911 are primes.

%H Harvey P. Dale, <a href="/A108597/b108597.txt">Table of n, a(n) for n = 1..1000</a>

%e If n=2 then 911*n - 11 = 1811 (prime).

%e If n=140 then 911*n - 11 = 127529 (prime).

%p a:=proc(n) if isprime(911*n-11)=true then n else fi end: seq(a(n),n=0..900); # _Emeric Deutsch_, Aug 07 2005

%t Select[Range[750],PrimeQ[911#-11]&] (* _Harvey P. Dale_, Mar 24 2013 *)

%o (PARI) is(n)=isprime(911*n-11) \\ _Charles R Greathouse IV_, Jun 12 2017

%o (Magma) [n: n in [1..800] | IsPrime(911*n-11)]; // _G. C. Greubel_, Oct 20 2023

%o (SageMath) [n for n in (1..800) if is_prime(911*n-11)] # _G. C. Greubel_, Oct 20 2023

%Y Cf. A108937, A108596.

%K nonn,easy

%O 1,1

%A _Parthasarathy Nambi_, Jul 25 2005

%E More terms from _Emeric Deutsch_, Aug 07 2005