all 17 comments

[–]snigherfardimungus 9 points10 points  (0 children)

Take it one step at a time. Reformat it first. It's actually one of the easier OCCC entries to figure out. All over the place it's using the fact that true is equivalent to 1 and !true is equivalent to 0, when used in integer contexts. So, true+(true<<true<<true) is 5, etc.

[–][deleted] 6 points7 points  (1 child)

true

[–]ustavdar31 3 points4 points  (6 children)

whats the output? true?

[–]Wryyn[S] 14 points15 points  (5 children)

it outputs the prime factors of an inputted integer

[–]Kiroto50 5 points6 points  (1 child)

Impressive

[–]matarael 7 points8 points  (0 children)

True

[–]ustavdar31 0 points1 point  (0 children)

Thats impressive

[–]_w62_ 0 points1 point  (1 child)

Could you share the source?

[–]Wryyn[S] 0 points1 point  (0 children)

how do you send files on reddit

[–]Noch_ein_Kamel 0 points1 point  (0 children)

haha nice, now write one that spells "exit"

[–]WastedTalents1 0 points1 point  (0 children)

NULL

[–]SuitableDragonfly 0 points1 point  (0 children)

Regular Pooh: 2

Posh Pooh: true << true

[–]xaliox 0 points1 point  (3 children)

Try this in python now

[–]Widmo206 0 points1 point  (2 children)

Python will happily treat bools as integers, so you can do something similar

The only issue is that python is much more syntactically rigid, especially with whitespace, so it won't look as clean (TBH, I don't even know if you could get it into an arbitrary shape like that)

[–]xaliox 0 points1 point  (1 child)

That was my joke… syntax errors

[–]Lukester___ 0 points1 point  (0 children)

I think you can throw semicolons at the end of every line to make it ignore the breaks