I have had some problems to get trough the test suite, one of them was that my primes where in UINT32 and that failed the 'isprime' assertion.
Maybe you could change the following line
Double implemented in test suite. Intent is to find the primes, not to get snared by errant function limitations.
Currently the MATLAB function primes is able to solve this problem. Since systems always evolve, the problem's author will probably have to be constantly updating it. Or at least, once a year.
Nice merger of primes with a customized sieving to set a new speed record on a limited memory system.
Sorry, but can't get code to run at all. So try to get some help this way...
Which values occur exactly three times?
given 3 sides, find area of this triangle
Swap the input arguments
Try 1.5.4: Celsius to Fahrenheit
Calculate distance travelled when given radius and rotations
GJam March 2016 IOW: Polynesiaglot Medium
GJam 2014 China Rd B: Sudoku Checker
Unique - Very Very Large Numbers
Vector Linear sum: (p1-m1)V1+(p2-m2)V2+...(pK-mk)Vk
Kaggle: Reverse Game of Life - Zoo of Stills and Oscillators
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