This solution is outdated. To rescore this solution, sign in.
-
1 Comment
eggart
on 2 Mar 2016
IMHO 1 is not a prime, so that on input n=2 the correct answer should be [] and not 1.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!