[crap] posting our own shitty code [lol-worthy] (15)

2 Name: #!/usr/bin/anonymous : 2006-11-27 00:06 ID:Heaven

some perl i've written...

$a=$_=pop;s^.^$'H.^;y,:-@[-` --{-,A-Ga-f.,;crypt($a,$_)=~/.../;die$'

and then there's this beautiful is_prime() function:

sub is_prime{map{$n=$n%$_?$n:0}2..($n=pop)**.5;$n>1&&1}

4 Name: 2 : 2006-11-27 14:55 ID:Heaven

sub is_prime{map{$n=$n%$_?$n:0}2..($n=pop)**.5;$n>1}

i have no idea why that &&1 was in there... that's what happens when i write code after being awake for over 70 hours...

This thread has been closed. You cannot post in this thread any longer.