Cody

Solution 802683

Submitted on 7 Jan 2016 by Michael Cappello
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 x = Columns 1 through 16 68 101 116 101 114 109 105 110 101 32 119 104 105 99 104 32 Columns 17 through 32 97 114 114 97 121 32 101 108 101 109 101 110 116 115 32 97 Columns 33 through 40 114 101 32 112 114 105 109 101 x = Columns 1 through 16 68 116 114 105 110 32 119 104 105 99 104 32 114 114 121 32 Columns 17 through 26 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 = , , , x = Columns 1 through 16 89 101 83 44 32 73 32 83 97 89 44 32 109 97 107 101 Columns 17 through 32 32 109 101 32 83 79 109 101 32 101 103 103 44 32 97 67 Column 33 101 x = 44 32 32 44 32 32 32 32 44 32

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

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