Cody

Problem 3020. Prime Letters = Removing

Solution 2105881

Submitted on 26 Jan 2020 by Asif Newaz
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' ans = '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 = ', , , ' ans = ', , , '

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

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

s1 = 'DISSappearIng' s2 = 'Dpprn' ans = 'Dpprn'

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

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

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

s1 = 'GaSSeS GO' s2 = ' ' ans = ' '

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

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