Programming 12

Put your programming skills to the test in these challenges.

Programming 12

Post by Tiak on Fri Jan 23, 2009 4:15 pm
([msg=16865]see Programming 12[/msg])

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
New User
 
Posts: 4
Joined: Mon Apr 28, 2008 6:25 am
Blog: View Blog (0)


Re: Programming 12

Post by TheMindRapist on Fri Jan 23, 2009 4:16 pm
([msg=16866]see Re: Programming 12[/msg])

Individual digits, yeah the description sucks, and the previous one was worse.
Edit: Description has been updated
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: Programming 12

Post by eljonto on Fri Jan 23, 2009 9:59 pm
([msg=16887]see Re: Programming 12[/msg])

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
_________________________________________________________________
User avatar
eljonto
Poster
Poster
 
Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)


Re: Programming 12

Post by lolobip on Sat Jan 24, 2009 8:28 am
([msg=16916]see Re: Programming 12[/msg])

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 :P
lolobip
New User
New User
 
Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)


Re: Programming 12

Post by eljonto on Sat Jan 24, 2009 5:24 pm
([msg=16931]see Re: Programming 12[/msg])

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
_________________________________________________________________
User avatar
eljonto
Poster
Poster
 
Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)


Re: Programming 12

Post by ratcateme on Thu Jan 29, 2009 6:24 pm
([msg=17066]see Re: Programming 12[/msg])

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
New User
 
Posts: 4
Joined: Wed Apr 23, 2008 9:31 pm
Blog: View Blog (0)


Re: Programming 12

Post by eljonto on Thu Jan 29, 2009 8:13 pm
([msg=17068]see Re: Programming 12[/msg])

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 :P
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________
User avatar
eljonto
Poster
Poster
 
Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)


Re: Programming 12

Post by BhaaL on Fri Jan 30, 2009 8:34 am
([msg=17093]see Re: Programming 12[/msg])

Both 11 and 12 are possible without writing a Socket-client that logs in and submits the answer 8-)
BhaaL
Poster
Poster
 
Posts: 270
Joined: Sun Apr 13, 2008 11:16 am
Blog: View Blog (0)


Re: Programming 12

Post by eljonto on Fri Jan 30, 2009 5:51 pm
([msg=17131]see Re: Programming 12[/msg])

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 8-)
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________
User avatar
eljonto
Poster
Poster
 
Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)


Re: Programming 12

Post by lolobip on Sat Jan 31, 2009 7:53 am
([msg=17153]see Re: Programming 12[/msg])

Other way -> Basic ten like approach :)
lolobip
New User
New User
 
Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)


Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron