It is strongly recommended to include several tests in your Test Suite, otherwise the solution is easy to hardcode (see Solution 1470259). See also Problem 44521 for further discussion of this topic.
Generate a string like abbcccddddeeeee
Multiply by 3
Calculate square and cube of number
determine the sum of the squares
Find the nearest prime number
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