Cody

# Problem 3020. Prime Letters = Removing

Solution 2397207

Submitted on 27 May 2020 by Jamal Nasir
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### 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' y = '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 = ', , , ' y = ', , , '

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

s1 = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' s2 = 'wrtyuiopsdfhjlzxcvbnQWERTUPADFHJKLZXVBNM' y = 'wrtyuiopsdfhjlzxcvbnQWERTUPADFHJKLZXVBNM'

4   Pass
s1 = 'DISSappearIng' s2 = 'Dpprn' assert(isequal(primeLetters(s1),s2))

s1 = 'DISSappearIng' s2 = 'Dpprn' y = 'Dpprn'

5   Pass
s1 = 'One, twO, three' s2 = 'n, tw, thr' assert(isequal(primeLetters(s1),s2))

s1 = 'One, twO, three' s2 = 'n, tw, thr' y = 'n, tw, thr'

6   Pass
s1 = 'GaSSeS GO' s2 = ' ' assert(isequal(primeLetters(s1),s2))

s1 = 'GaSSeS GO' s2 = ' ' y = ' '

7   Pass
s1 = 'SageS Must SaY See' s2 = ' Must ' assert(isequal(primeLetters(s1),s2))

s1 = 'SageS Must SaY See' s2 = ' Must ' y = ' Must '

### Community Treasure Hunt

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

Start Hunting!