Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ Challenge

Name: Anonymous 2007-09-04 15:06 ID:bG0CVxDp

Hey, I've stolen this challenge from some website, it's pretty easy but I know most of you will fuck it up.

A sequence is defined by:

n -> n/2 (n is even)
n -> 3n + 1 (n is odd)

Find the longest sequence, with a starting number under one million.

Bonus points when you find the solution for ten million.

Name: Anonymous 2007-09-05 8:19 ID:Heaven

>>31
You must be doing something horribly wrong besides being ENTERPRISE.

$ time java World4ChProgPuzzle > /dev/null
real    [b]6m15.285s[/b]
user    4m35.671s
sys    0m15.953s

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List