Problem 3020. Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers.
For Example:
s1 = 'Determine which array elements are prime'
Becomes:
s2 = 'Dtrin which rry lnts r pri'
Solution Stats
Problem Comments
-
1 Comment
goc3
on 27 Sep 2017
Additional test cases have been added.
Solution Comments
Show commentsProblem Recent Solvers107
Suggested Problems
-
Find state names that start with the letter N
1426 Solvers
-
Create a cell array out of a struct
2378 Solvers
-
Remove the two elements next to NaN value
694 Solvers
-
Make a run-length companion vector
655 Solvers
-
472 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!