Number Theory

Discussion of challenges you have already solved
Post Reply
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Number Theory

Post by teebee »

I solved it using http://www.alpertron.com.ar/ECM.HTM and http://primes.utm.edu/lists/small/1000.txt. However, I wonder whether the factor 433^11 has been intentionally omitted. Nevertheless, a nice challenge.
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

Thanks, and nice use of tools! It wasn't mean to be incredibly hard to factor; the challenge was deciphering the encoding scheme.

Also, 433^11 was not intentional, I'll let adum know ;-)
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

Once again Mathematica has proven itself to be a wonderful tool:

Code: Select all

n = 364843790094573992692171828893958267226605666939892572894047098638\
9184961532284016919213346409983710756329032006862785922310236412226440\
1785848633686914239718396824942863542362872670850647423969609315959515\
511402019435615717737240510626468808851903266920099765545245394707;

FromCharacterCode[
	PrimePi[#1[[1]]] & /@ Sort[FactorInteger[n], #1[[2]] < #2[[2]] &]
]
Execution time of 15ms, poking around time: a bit longer
User avatar
laz0r
Posts: 290
Joined: Thu Feb 04, 2010 4:18 pm
Location: Within the depths of Unix

Post by laz0r »

I used mathematica too, and I must say I was in awe at the speed.

Working out the relation they had with other primes to form letters took slightly longer though. Great challenge!
There is no spoon.
magnus
Posts: 20
Joined: Thu Mar 05, 2009 2:29 pm

Post by magnus »

Great challenge - The solution having each character exactly once made it even harder.
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post by Hippo »

Interesting ... first attempt lead naturally to the solution ...
User avatar
yes-man
Posts: 32
Joined: Fri Jan 30, 2009 5:14 pm

Nice.

Post by yes-man »

After initially leaving it for a few years, this challenge turned out to be a nice one.
First attempts involved reading it in binary .. *d'uh* .. Okay. Primes it was.
After that it was okay-ish. (With the hint from laz0r)
Post Reply