MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / hamming_numbers.py

File hamming_numbers.py

maths/special_numbers/hamming_numbers.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2A Hamming number is a positive integer of the form 2^i*3^j*5^k, for some
3non-negative integers i, j, and k. They are often referred to as regular numbers.
4More info at: https://en.wikipedia.org/wiki/Regular_number.

Callers

nothing calls this directly

Calls 1

hammingFunction · 0.85

Tested by

no test coverage detected