Problem 3003. Mobius function
58.51% Correct | 41.49% Incorrect
Last Solution submitted on Mar 21, 2023
Jan Orwat on 11 Feb 2015
Hello Grant. It's a nice set, but for problems 3001 and 3002 lookup tables are "always win" solutions. For this problem you can avoid this by using some randomness in the test suite.
goc3 on 11 Feb 2015
I'm glad you like them, and thanks for the feedback. I just added a random test case to all three problems.
rifat on 11 Feb 2015
Yeah, the series is good. After a few rounds of spam-storm, Cody seems to be back on track...
Problem Recent Solvers43
How long is the longest prime diagonal?
Check if number exists in vector
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
07 - Common functions and indexing 1
More from this Author139
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!