Displaying 1-10 of 20 results found.
Nonnegative numbers k such that 2*k + 17 is prime.
+0
21
0, 1, 3, 6, 7, 10, 12, 13, 15, 18, 21, 22, 25, 27, 28, 31, 33, 36, 40, 42, 43, 45, 46, 48, 55, 57, 60, 61, 66, 67, 70, 73, 75, 78, 81, 82, 87, 88, 90, 91, 97, 103, 105, 106, 108, 111, 112, 117, 120, 123, 126, 127, 130, 132, 133, 138, 145, 147, 148, 150, 157, 160, 165
MATHEMATICA
(Prime[Range[7, 100]]-17)/2
PROG
(Magma) [n: n in [0..200] | IsPrime(2*n+17) ]; // G. C. Greubel, May 22 2019
(Sage) [n for n in (0..200) if is_prime(2*n+17) ] # G. C. Greubel, May 22 2019
(GAP) Filtered([0..200], k-> IsPrime(2*k+17) ) # G. C. Greubel, May 22 2019
Numbers k such that 2*k-11 is not a prime.
+0
4
10, 13, 16, 18, 19, 22, 23, 25, 28, 30, 31, 33, 34, 37, 38, 40, 43, 44, 46, 48, 49, 51, 52, 53, 55, 58, 61, 63, 64, 65, 66, 67, 68, 70, 72, 73, 76, 77, 78, 79, 82, 83, 85, 86, 88, 90, 91, 93, 94, 97, 98, 99, 100, 103, 106, 107, 108, 109, 110, 112, 113, 114
COMMENTS
The terms are the values of 2*h*k + k + h + 6, where h and k are positive integers. - Vincenzo Librandi, Jan 19 2013
PROG
(Magma) [n: n in [7..120] | not IsPrime(2*n - 11)]; // Vincenzo Librandi, Oct 11 2012
(Python)
from sympy import isprime
def ok(n): return n > 6 and not isprime(2*n-11)
Nonnegative numbers k such that 2k + 13 is prime.
+0
22
0, 2, 3, 5, 8, 9, 12, 14, 15, 17, 20, 23, 24, 27, 29, 30, 33, 35, 38, 42, 44, 45, 47, 48, 50, 57, 59, 62, 63, 68, 69, 72, 75, 77, 80, 83, 84, 89, 90, 92, 93, 99, 105, 107, 108, 110, 113, 114, 119, 122, 125, 128, 129, 132, 134, 135, 140, 147, 149, 150, 152, 159, 162, 167
COMMENTS
Or, (p-13)/2 for primes p >= 13.
EXAMPLE
For k = 7, 2*k+13 = 27 is not prime, so 7 is not in the sequence;
for k = 8, 2*k+13 = 29 is prime, so 8 is in the sequence.
MATHEMATICA
Select[Range[0, 200], PrimeQ[2#+13]&] (* Harvey P. Dale, Mar 02 2015 *)
PROG
(Magma) [ n: n in [0..200] | IsPrime(2*n+13) ];
(Sage) [n for n in (0..200) if is_prime(2*n+13) ] # G. C. Greubel, May 22 2019
(GAP) Filtered([0..200], k-> IsPrime(2*k+13) ) # G. C. Greubel, May 22 2019
Nonnegative numbers k such that 2k + 19 is prime.
+0
25
0, 2, 5, 6, 9, 11, 12, 14, 17, 20, 21, 24, 26, 27, 30, 32, 35, 39, 41, 42, 44, 45, 47, 54, 56, 59, 60, 65, 66, 69, 72, 74, 77, 80, 81, 86, 87, 89, 90, 96, 102, 104, 105, 107, 110, 111, 116, 119, 122, 125, 126, 129, 131, 132, 137, 144, 146, 147, 149, 156, 159, 164, 165
COMMENTS
Or, (p-19)/2 for primes p >= 19.
EXAMPLE
For k = 4, 2*k+19 = 27 is not prime, so 4 is not in the sequence;
for k = 17, 2*k+19 = 53 is prime, so 17 is in the sequence.
PROG
(Magma) [ n: n in [0..165] | IsPrime(2*n+19) ];
(Sage) [n for n in (0..200) if is_prime(2*n+19) ] # G. C. Greubel, May 22 2019
(GAP) Filtered([0..200], k-> IsPrime(2*k+19) ) # G. C. Greubel, May 22 2019
Triangle read by rows: a(n,m) = If(n = 1, then 1, else Prime(n) - 1 + Sum_{k=n..m} (Prime(k + 1) - Prime(k))/2 ).
+0
0
1, 1, 3, 1, 4, 5, 1, 6, 7, 8, 1, 7, 8, 9, 11, 1, 9, 10, 11, 13, 14, 1, 10, 11, 12, 14, 15, 17, 1, 12, 13, 14, 16, 17, 19, 20, 1, 15, 16, 17, 19, 20, 22, 23, 25, 1, 16, 17, 18, 20, 21, 23, 24, 26, 29, 1, 19, 20, 21, 23, 24, 26, 27, 29, 32, 33, 1, 21, 22, 23, 25, 26, 28, 29, 31, 34, 35
COMMENTS
An improved triangular Goldbach sequence in which the gap sum is taken from a start at n.
EXAMPLE
1
1, 3
1, 4, 5
1, 6, 7, 8
1, 7, 8, 9, 11
1, 9, 10, 11, 13, 14
1, 10, 11, 12, 14, 15, 17
1, 12, 13, 14, 16, 17, 19, 20
1, 15, 16, 17, 19, 20, 22, 23, 25
1, 16, 17, 18, 20, 21, 23, 24, 26, 29
MATHEMATICA
t[n_, m_] := If[n == 1, 1, Prime[n] + Sum[(Prime[k + 1] - Prime[k])/2, {k, n, m}] - 1]; Table[ t[n, m], {m, 11}, {n, m}] // Flatten
Nonnegative numbers k such that 2k+7 is prime.
+0
32
0, 2, 3, 5, 6, 8, 11, 12, 15, 17, 18, 20, 23, 26, 27, 30, 32, 33, 36, 38, 41, 45, 47, 48, 50, 51, 53, 60, 62, 65, 66, 71, 72, 75, 78, 80, 83, 86, 87, 92, 93, 95, 96, 102, 108, 110, 111, 113, 116, 117, 122, 125, 128, 131, 132, 135, 137, 138, 143, 150, 152, 153, 155, 162
EXAMPLE
If n=0, then 2*0 + 7 = 7 (prime).
If n=15, then 2*15 + 7 = 37 (prime).
If n=27, then 2*27 + 7 = 61 (prime).
PROG
(Sage) [n for n in (0..200) if is_prime(2*n+7) ] # G. C. Greubel, May 21 2019
(GAP) Filtered([0..200], k-> IsPrime(2*k+7) ) # G. C. Greubel, May 21 2019
CROSSREFS
Cf. A153053 (Numbers n such that 2n+7 is not a prime)
Nonnegative numbers k such that 2k + 11 is prime.
+0
23
0, 1, 3, 4, 6, 9, 10, 13, 15, 16, 18, 21, 24, 25, 28, 30, 31, 34, 36, 39, 43, 45, 46, 48, 49, 51, 58, 60, 63, 64, 69, 70, 73, 76, 78, 81, 84, 85, 90, 91, 93, 94, 100, 106, 108, 109, 111, 114, 115, 120, 123, 126, 129, 130, 133, 135, 136, 141, 148, 150, 151, 153, 160, 163
COMMENTS
2 is the smallest single-digit prime and 11 is the smallest two-digit prime.
EXAMPLE
If n=1, then 2*1 + 11 = 13 (prime).
If n=49, then 2*49 + 11 = 109 (prime).
If n=69, then 2*69 + 11 = 149 (prime).
MAPLE
select(k-> isprime(11+2*k), [$0..200])[]; # Alois P. Heinz, Jun 02 2022
PROG
(Sage) [n for n in (0..200) if is_prime(2*n+11) ] # G. C. Greubel, May 21 2019
(GAP) Filtered([0..200], k-> IsPrime(2*k+11) ) # G. C. Greubel, May 21 2019
Positive integers n such that 2n-19 is prime.
+0
22
11, 12, 13, 15, 16, 18, 19, 21, 24, 25, 28, 30, 31, 33, 36, 39, 40, 43, 45, 46, 49, 51, 54, 58, 60, 61, 63, 64, 66, 73, 75, 78, 79, 84, 85, 88, 91, 93, 96, 99, 100, 105, 106, 108, 109, 115, 121, 123, 124, 126, 129, 130, 135, 138, 141, 144, 145, 148, 150, 151, 156, 163
FORMULA
Half of p+19 where p is a prime greater than 2.
MATHEMATICA
Select[Range[10, 200], PrimeQ[2#-19]&] (* Harvey P. Dale, May 08 2017 *)
AUTHOR
Douglas Winston (douglas.winston(AT)srupc.com), Sep 21 2004
Positive integers n such that 2n - 9 is prime.
+0
22
6, 7, 8, 10, 11, 13, 14, 16, 19, 20, 23, 25, 26, 28, 31, 34, 35, 38, 40, 41, 44, 46, 49, 53, 55, 56, 58, 59, 61, 68, 70, 73, 74, 79, 80, 83, 86, 88, 91, 94, 95, 100, 101, 103, 104, 110, 116, 118, 119, 121, 124, 125, 130, 133, 136, 139, 140, 143, 145, 146, 151, 158, 160
FORMULA
Half of p+9 where p is a prime greater than 2.
PROG
(Magma) [n: n in [6..160] | IsPrime(2*n-9)]; // Bruno Berselli, Mar 05 2011
AUTHOR
Douglas Winston (douglas.winston(AT)srupc.com), Sep 15 2004
Positive integers n such that 2n-13 is prime.
+0
20
8, 9, 10, 12, 13, 15, 16, 18, 21, 22, 25, 27, 28, 30, 33, 36, 37, 40, 42, 43, 46, 48, 51, 55, 57, 58, 60, 61, 63, 70, 72, 75, 76, 81, 82, 85, 88, 90, 93, 96, 97, 102, 103, 105, 106, 112, 118, 120, 121, 123, 126, 127, 132, 135, 138, 141, 142, 145, 147, 148, 153, 160, 162
FORMULA
Half of p+13 where p is a prime greater than 2.
MATHEMATICA
Select[Range[8, 200], PrimeQ[2#-13]&] (* Harvey P. Dale, Apr 26 2013 *)
AUTHOR
Douglas Winston (douglas.winston(AT)srupc.com), Sep 18 2004
Search completed in 0.011 seconds
|