Cody

Solution 1948570

Submitted on 25 Sep 2019 by Nikolaos Nikolaou
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 = Columns 1 through 30 68 101 116 101 114 109 105 110 101 32 119 104 105 99 104 32 97 114 114 97 121 32 101 108 101 109 101 110 116 115 Columns 31 through 40 32 97 114 101 32 112 114 105 109 101 y = 68 116 114 105 110 32 119 104 105 99 104 32 114 114 121 32 108 110 116 115 32 114 32 112 114 105

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 = Columns 1 through 30 89 101 83 44 32 73 32 83 97 89 44 32 109 97 107 101 32 109 101 32 83 79 109 101 32 101 103 103 44 32 Columns 31 through 33 97 67 101 y = 44 32 32 44 32 32 32 32 44 32

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

s1 = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' s2 = 'wrtyuiopsdfhjlzxcvbnQWERTUPADFHJKLZXVBNM' y = Columns 1 through 30 113 119 101 114 116 121 117 105 111 112 97 115 100 102 103 104 106 107 108 122 120 99 118 98 110 109 81 87 69 82 Columns 31 through 52 84 89 85 73 79 80 65 83 68 70 71 72 74 75 76 90 88 67 86 66 78 77 y = Columns 1 through 30 119 114 116 121 117 105 111 112 115 100 102 104 106 108 122 120 99 118 98 110 81 87 69 82 84 85 80 65 68 70 Columns 31 through 40 72 74 75 76 90 88 86 66 78 77

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

s1 = 'DISSappearIng' s2 = 'Dpprn' y = 68 73 83 83 97 112 112 101 97 114 73 110 103 y = 68 112 112 114 110

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

s1 = 'One, twO, three' s2 = 'n, tw, thr' y = 79 110 101 44 32 116 119 79 44 32 116 104 114 101 101 y = 110 44 32 116 119 44 32 116 104 114

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

s1 = 'GaSSeS GO' s2 = ' ' y = 71 97 83 83 101 83 32 71 79 y = 32

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

s1 = 'SageS Must SaY See' s2 = ' Must ' y = 83 97 103 101 83 32 77 117 115 116 32 83 97 89 32 83 101 101 y = 32 77 117 115 116 32 32