+ 20

Challenge : Evil Numbers

Convert any no. to binary and If sum of binary digits is even, no is EVIL.. Find such nos from 1 to entered limit(say x) preferably in c++ or any other language. Hit a like if u liked the challenge!! Happy Coding! Check out mine too ! https://code.sololearn.com/cjfLs6mGc4Ww/?ref=app

31st Aug 2017, 3:19 PM
Abhishek Tandon
Abhishek Tandon - avatar
24 Respuestas
31st Aug 2017, 4:02 PM
ysraelcon
ysraelcon - avatar
+ 13
https://code.sololearn.com/czVEjEB1X0iV/#cs Here it is :)
29th Sep 2017, 12:43 AM
Vukan
Vukan - avatar
31st Aug 2017, 4:33 PM
༼ つ ◕_◕ ༽つ
༼ つ ◕_◕ ༽つ - avatar
+ 9
31st Aug 2017, 4:24 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 9
@noobcoder ^_^ :D
2nd Sep 2017, 3:08 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 8
@Daniel Cool!!
31st Aug 2017, 3:55 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 8
@ysraelcon good one!
31st Aug 2017, 4:06 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 8
@HelloWorld good one!
31st Aug 2017, 4:59 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 8
Here is mine https://code.sololearn.com/cCGK158w9YQ0/?ref=app EDIT: More than half of all nos are evil 😂😂
31st Aug 2017, 5:15 PM
David Akhihiero
David Akhihiero - avatar
1st Sep 2017, 9:58 PM
LukArToDo
LukArToDo - avatar
+ 8
@noobcoder Just like there r 10 even nos between 1 and 20 in decimal no system similarly there are 10 "even" nos in binary no system .. I guess its some mathematical coincidence... ^_^
2nd Sep 2017, 2:54 PM
Abhishek Tandon
Abhishek Tandon - avatar
31st Aug 2017, 4:32 PM
Shamima Yasmin
Shamima Yasmin - avatar
28th Sep 2017, 3:27 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 6
YATP: Yet Another Try in Python :D Have you noted that the number of Evil Numbers is aprox. the middle of the top number? https://code.sololearn.com/cD7Yh3o2wvO5/#py
2nd Sep 2017, 12:58 PM
noobcøder
noobcøder - avatar
31st Aug 2017, 9:15 PM
m abrate
m abrate - avatar
+ 5
@On Nom: Sounds pretty logic now 😂😂
2nd Sep 2017, 3:08 PM
noobcøder
noobcøder - avatar
+ 4
Check out the code please.. Evil 😈😈😈😈 Number.. https://code.sololearn.com/ck0Fb2nNI356/?ref=app
31st Aug 2017, 6:24 PM
Sanjeev Kumar
Sanjeev Kumar - avatar
+ 4
https://code.sololearn.com/ch72iXu3cHtI/# Check out my version!
2nd Sep 2017, 9:57 PM
Petros Simidyan
Petros Simidyan - avatar
+ 4
It's a really old challenge ... But thought I'd give it a try ! My solution in Java ... https://code.sololearn.com/cQPNzPYTrPZ6/?ref=app
8th Apr 2018, 9:24 AM
Aaron Stone
Aaron Stone - avatar
+ 3
31st Aug 2017, 3:51 PM
Daniel Stanciu
Daniel Stanciu - avatar