Pernicious number

In number theory, a pernicious number is a positive integer where the Hamming weight (or digit sum) of its binary representation is prime.

Examples

The first pernicious number is 3, since 3 = 112 and 1 + 1 = 2, which is a prime. The next pernicious number is 5, since 5 = 1012, followed by 6, 7 and 9 (sequence A052294 in the OEIS).

Properties

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.