## Programming 12

Put your programming skills to the test in these challenges.

### Programming 12

Two quick things:
1) Can anybody confirm that it is in fact working.
2) The instructions suck, if it currently does work, can someone please clarify?...
"concatenate by the product of all added composite numbers by all added primes. (disregard 0's and 1's entirely)"

It refers to summing numbers, without explaining what numbers these are... Are they...
-All individual digits in the original string?
-All continuous sequences of digits in the original string?
-All byte values in the original string?
-All byte values in the string after incrementing?
-"All added composite numbers and all added primes"? (These numbers both being infinite)
-something else?

We currently have some conflicting evidence for choosing the correct interpretation:
-The example solution's product has 9 digits. Of these, this is only possible for the 3rd and 4th interpretations.
-One is told to disregard 0's and 1's, this is meaningless for my 3rd and 4th interpretations.
-Earlier, "everything that isn't a number" is mentioned, suggesting one of the first two interpretations.

I'm leaning towards the "something else" if is supposed to be working, because I quickly attempted all of these and a few more without any success... This is a prog mission, not a logic or stego mission, so the instructions should be at least a little clear.
Tiak
New User

Posts: 4
Joined: Mon Apr 28, 2008 6:25 am
Blog: View Blog (0)

### Re: Programming 12

Individual digits, yeah the description sucks, and the previous one was worse.
Edit: Description has been updated

TheMindRapist
Contributor

Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)

### Re: Programming 12

I reackon this mission should be rated easy not moderate- but anyway ive done it but i cant submit it because i did it in perl and i still havn't worked out a way to submit. It took me a hour of playing around to even send phpsessid in my headers with perls LWP module and making a post request with the 'solution'=>'answer' doesn't seem to work blurgh. if only it was as simple as python urllib and urllib2 libraries...
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________

eljonto
Poster

Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)

### Re: Programming 12

This one is much like prog 11 in terms of do-ability, personally I did it in php (and afterwards javascipt), but I had to fasten my ctrl+a, ctrl +c, ctrl+v
lolobip
New User

Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)

### Re: Programming 12

lol ye i tried that, didn't work great- although i did find a way of getting text to the clipborad from perl,so i might try something like that. as for prog11 i did that in python so getting it and submitting it was a lot simpler

##EDIT: Lol got it- i was loosing valuable .3 of a second by click, ctrl-a, ctrlc when i could just go click ctrl-ctrl-c XD
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________

eljonto
Poster

Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)

### Re: Programming 12

did this mission last night in php. i never saw the old description but with the current one i was able to code the main script part in like 10 mins not very hard at all took me like 30 mins to setup all the curl requests to login and then submit the answer but i defiantly think it should be downgraded to a easy not a medium

Scott.
ratcateme
New User

Posts: 4
Joined: Wed Apr 23, 2008 9:31 pm
Blog: View Blog (0)

### Re: Programming 12

Yea- even with the old description when i did it-i admit i had to read the description a few timesto fully understand what to do,but coding it only took a couple of mins- that hardest part of prog11, prog12 etc is submitting the answer from the script in my opinion
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________

eljonto
Poster

Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)

### Re: Programming 12

Both 11 and 12 are possible without writing a Socket-client that logs in and submits the answer
BhaaL
Poster

Posts: 270
Joined: Sun Apr 13, 2008 11:16 am
Blog: View Blog (0)

### Re: Programming 12

Both 11 and 12 are possible without writing a Socket-client that logs in and submits the answer

I didn't get the script to login, i just got my current phpsessid and sent that with the headers, although i woud like to find out a different way to submit them if it's not too spoilerish for the forum
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________

eljonto
Poster

Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)

### Re: Programming 12

Other way -> Basic ten like approach
lolobip
New User

Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)

Next