Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB 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

132 correct solutions 34 incorrect solutions
Last solution submitted on Apr 30, 2016

Problem Comments

Solution Comments