Rosetta Code

Hamming numbers

Generate the opening Hamming numbers with the classic 2-3-5 pointer technique.

Intermediate View source

Edit the source, then Run. Checks start after your first Run. Ctrl/⌘ + Enter runs; Tab indents. Preview services use sample data and never contact a real service.

rosettacode/popular/hamming_numbers.vibe
Output
Click Run example to see the result.

Code checks

Run once to load the checker. Your code stays in this browser.