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))).
Find the longest sequence of 1's in a binary sequence.
Remove the vowels
middleAsColumn: Return all but first and last element as a column vector
Find a subset that divides the vector into equal halves
Calculate the area of a triangle between three points
Compute the perimeter of an ellipse
Solve an ODE: equation C
Solve an ODE: equation A
Compute the largest number whose prime factors sum to n
Find the smallest prime with n inside
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