Chris, please check test 21. The factors of 1535238 include two 67's, therefore it seems to me the solution should be 134.
David: Take another look. ChrisR's anti-lookup trick lets correct solutions pass the test!
David, you are correct for Kempner(1535238), but that test asks for Kempner(Kempner(Kempner(1535238))).
Number of 1s in the Binary Representation of a Number
Remove NaN ?
Back to basics 12 - Input Arguments
Arrange vector in ascending order
Find the next square number
Sum the elements in rows of the Levine triangle
Determine whether a square can be drawn on a grid of dots
Compute the Euler totient function
Find the smallest prime with n inside
Iterate the sum of divisors and totient
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office