Cody

Solution 1284182

Submitted on 10 Oct 2017 by Daniel Pereira
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'

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
s1 = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' s2 = 'wrtyuiopsdfhjlzxcvbnQWERTUPADFHJKLZXVBNM' assert(isequal(primeLetters(s1),s2))

s1 = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' s2 = 'wrtyuiopsdfhjlzxcvbnQWERTUPADFHJKLZXVBNM'

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

s1 = 'DISSappearIng' s2 = 'Dpprn'

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

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

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

s1 = 'GaSSeS GO' s2 = ' '

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

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