login
Numbers whose binary expansion is a decimal nonprime.
2

%I #9 Jun 13 2017 02:28:20

%S 1,2,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,

%T 29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48,49,50,51,52,

%U 53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70

%N Numbers whose binary expansion is a decimal nonprime.

%C Complement of A036952. Binary expansion of a(n) in A174417.

%H Robert Israel, <a href="/A174416/b174416.txt">Table of n, a(n) for n = 1..10000</a>

%e For n=6, a(6) = 8; binary expansion of 8 = 1000 (nonprime).

%p remove(t -> isprime(convert(t,binary)), [$1..100]); # _Robert Israel_, Jun 13 2017

%t Select[Range[80],!PrimeQ[FromDigits[IntegerDigits[#,2]]]&] (* _Harvey P. Dale_, May 10 2012 *)

%K nonn

%O 1,2

%A _Jaroslav Krizek_, Mar 19 2010

%E Corrected and extended by Harvey P. Dale, May 10 2012