Solution - HackthisSite Programming Mission 12

This level is about string manipulation.

In this challenge, you will be given a string. Take all the numbers from the string and classify them as composite numbers or prime numbers. You should assume all numbers are one digit, and neither number 1 nor number 0 counts. Find the sum of every composite number, then find the sum of every prime number. Multiply these sums together. Then, take the first 25 non-numeric characters of the given string and increment their ASCII value by one (for example, # becomes $). Take these 25 characters and concatenate the product to them. This is your answer.

Sample Input String - $7wy4$ztawrth8z9n2l24zd0#r#yxtjjuxu781o74zbjvpk#ybz$024xd?j$?d$bbf#rp#s1ddv$9f#yh5bks@#cgm8og10?vzuw16f8@yo$erqtv5nf75gdon5ih$jmjeeehl7dojbeuqxpmcghycc8dbuwnorq2kr7uc947gn1yhpmqfglu2lz2p$p98yul2?xvaty@xz4$#voi0vqrctu#7ncjshz0d@o1t9d86n?ffxpyxafm5ymdhpgwmjecnoilhsw5vrybx4xxcl4wyg41m1$#vrdmlexpl@g#2t49t9zu22p4y@4kg1o825?fs@cxmz?x#o?w8t14odxchy@0if5x#mq5beyrfesyxknxvqr@m8nx5b4c#5vkhh3rnm00xveyntotx#@qm8kr8y2vl3nhg1yki3ldd010lo3v?mox@@irn$ng4xa#bmzh?ltow?rt$kuu8omx@y$k$cmz24gus5@t?x38tm@ee?89?d$d5j$gzrcxdabk53o?8wgn7v5ruoqb9djvngn571zg043kje7?x8sc4ubj?$70ctoxbfndjcw5$yy74zjg90slwv3w2sucjtqmyfjkm@o43oy$at6bwcsy2?mof2arnsnpzsa0fhutl8##6p5

Your answer should look like this: oc{lujxdpb%jvqrt{luruudtx140224

This challenge has to be completed in 5 seconds.