This problem needs a test suite
Yes, Ujjwal: you must define well the test cases.
I added two simple tests.
962 Solvers
Project Euler: Problem 10, Sum of Primes
707 Solvers
386 Solvers
Create matrix of replicated elements
321 Solvers
Is this triangle right-angled?
2396 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!