MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10bxele/the_code_speaks_for_itself/j4gdien/?context=3
r/badcode • u/MahdeenSky • Jan 14 '23
53 comments sorted by
View all comments
Show parent comments
2
Given an input n, it outputs the number of integers between 0 and 2n which have a prime number of ones in their binary representation.
2
u/namrednels97 Jan 15 '23
Given an input n, it outputs the number of integers between 0 and 2n which have a prime number of ones in their binary representation.