Problem 3020. Prime Letters = Removing

Solution 582799

Submitted on 15 Feb 2015 by Gareth Thomas
  • Size: 12
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% s1 = 'Determine which array elements are prime' s2 = 'Dtrin which rry lnts r pri' assert(isequal(primeLetters(s1),s2))

s1 = Determine which array elements are prime s2 = Dtrin which rry lnts r pri

2   Pass
%% s1 = 'YeS, I SaY, make me SOme egg, aCe' s2 = ', , , ' assert(isequal(primeLetters(s1),s2))

s1 = YeS, I SaY, make me SOme egg, aCe s2 = , , ,

3   Pass
%% s2 = 'wrtyuiopsdfhjlzxcvbnQWERTUPADFHJKLZXVBNM' s1 = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' assert(isequal(primeLetters(s1),s2))

s2 = wrtyuiopsdfhjlzxcvbnQWERTUPADFHJKLZXVBNM s1 = qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM

Suggested Problems

More from this Author2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!