editing
approved
editing
approved
a(n) ~ 4n log n. - Charles R Greathouse IV, Dec 07 2022
(PARI) is_A068229(n)={n%12==7 && isprime(n)} \\ then, e.g.,
approved
editing
(MAGMAMagma) [ p: p in PrimesUpTo(1400) | p mod 12 in {7} ]; // Vincenzo Librandi, Jul 14 2012
Edited by _Dean Hickerson (dean.hickerson(AT)yahoo.com), _, Feb 27 2002
reviewed
approved
proposed
reviewed
editing
proposed
Select[Prime/@Range[250], Mod[ #, 12] == 7 &]
(PARI) is_A068229(n)={n%12==7 && isprime(n)} \\ then, e.g., select(is_A068229, primes(250)) \\ - _M. F. Hasler_, Jan 25 2013
select(is_A068229, primes(250)) \\ - M. F. Hasler, Jan 25 2013
approved
editing
31 is in the sequence because 12 * 2 + 7 = 31 and it is prime.
43 = 12 * 3 + 7, and it is prime.
55 is not in the sequence because 12 * 4 + 7 = 5 * 11.
Select[Prime/@Range[250], Mod[ #, 12] == 7 &] (* Adorjan *)
Select[12Range[120] - 5, PrimeQ] (* Alonso del Arte, Dec 28 2013 *)
(PARI) is_A068229(n)={n%12==7 && isprime(n)} \\ then, e.g., select(is_A068229, primes(250)) \\ - _M. F. Hasler_, Jan 25 2013
select(is_A068229, primes(250)) \\ - M. F. Hasler, Jan 25 2013
easy,nonn,changed
proposed
approved
editing
proposed