Anonymous user
Pernicious numbers: Difference between revisions
m
changed the definition to be less verbose.
(added a new Rosetta Code task (pernicious numbers).) |
m (changed the definition to be less verbose.) |
||
Line 5:
'''definition'''
A ''pernicious number'' is a positive integer whose
The ''population count'' (also known as ''pop count'') is the number of 1's (ones) in the binary representation of an non-negative integer.
::: I.E.: '''22''' (which is '''10110''' in binary) has a population count of '''3''' which is prime, so '''22''' is a pernicious number.
|