In test suite problem 25, there seems to be an issue with the question mark after 'Africa'. The word Africa itself is a prime word, but the solution marks it as non-prime. Since the question mark is usually considered punctuation, I treated it as a space.
Thanks William. I fixed the test (and my own code).
Longest run of consecutive numbers
Duplicate each element of a vector.
Determine the number of odd integers in a vector
Implement a bubble sort technique and output the number of swaps required
Side of an equilateral triangle
Estimate π from certain values of the zeta function
Determine whether a square can be drawn on a grid of dots
Determine whether a number is a prime self number
Evaluate the gamma function
Compute the nth term from the Sieve of Flavius Josephus
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