[challenge] removal of prime digits in given input? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

[challenge] removal of prime digits in given input?

a number is given as input like 123456789 the number which is output is to be 1469 i welcome all languages

6th Oct 2017, 1:05 PM
SAKSHI
SAKSHI - avatar
7 Answers
+ 11
JavaScript: alert(prompt("").split("2").join("").split("3").join("").split("5").join("").split("7").join(""));
6th Oct 2017, 4:37 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 10
yeah , i will try it in java (tomorrow)
6th Oct 2017, 2:10 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 5
https://code.sololearn.com/cK8EuJ037On5/?ref=app
6th Oct 2017, 2:55 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 2
Should prime be less than 11? What if there is 11 in string?
6th Oct 2017, 2:51 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 2
bhai coming
6th Oct 2017, 5:01 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
6th Oct 2017, 5:27 PM
Hiroki Masuda
Hiroki Masuda - avatar