Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 1308. Give me Hamming on five, hold the mayo

Created by James

A Hamming Number is a positive number that has no prime factor greater than 5. Given a number X, determine how many Hamming numbers are less than or equal to that number. Please note that 1 counts as a Hamming number.

Score will be based on the amount of time it takes your code to solve the test suite.

Problem Group

Solution Statistics

115 correct solutions 26 incorrect solutions
Last solution submitted on Aug 15, 2014

Solution Comments