MCPcopy Create free account
hub / github.com/geekcomputers/Python / hamming-numbers.py

File hamming-numbers.py

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.
4The first 20 Hamming numbers are: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, and 36

Callers

nothing calls this directly

Calls 1

hammingFunction · 0.85

Tested by

no test coverage detected