login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A255564 Primes having in binary representation a nonprime number of 1's. 2

%I #9 May 14 2015 12:53:08

%S 2,23,29,43,53,71,83,89,101,113,139,149,163,197,263,269,277,281,293,

%T 311,317,337,347,349,353,359,373,383,389,401,449,461,467,479,503,509,

%U 523,547,571,593,599,619,643,673,683,691,739,751,773,797,811,821,839,853,857,863,881,887,907,937,977,983,991,1013,1019,1021,1031,1049,1061

%N Primes having in binary representation a nonprime number of 1's.

%C Equally: 2 followed by all primes with their hamming weight a composite number.

%H Antti Karttunen, <a href="/A255564/b255564.txt">Table of n, a(n) for n = 1..10000</a>

%e 2, which in binary (A007088) is "10", has just one 1-bit, and 1 is not a prime, thus 2 is included in the sequence.

%e 23, which in binary is "10111", has four 1-bits, and 4 is not a prime, thus 23 is included in the sequence.

%o (PARI)

%o i = 0; forprime(n=2, 2^31, if(!isprime(hammingweight(n)), i++; write("b255564.txt", i, " ", n); if(i>=10000,return(n))));

%o (Scheme, with _Antti Karttunen_'s IntSeq-library)

%o (define A255564 (MATCHING-POS 1 1 (lambda (n) (and (prime? n) (not (prime? (A000120 n)))))))

%Y Complement among primes: A081092.

%Y Intersection of A000040 and A084345.

%Y Subsequences: A027699 \ A019434, A085448, A095077, A255569.

%Y Cf. A000120.

%K nonn

%O 1,1

%A _Antti Karttunen_, May 14 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 08:01 EDT 2024. Contains 375510 sequences. (Running on oeis4.)