Lazy Evaluation

Marina's coding (mis)adventures

Browse by Tags

All Tags » incompetence (RSS)
Euler Problem 3
What is the largest prime factor of the number 600851475143 ? ----- I wrote this piece of disgusting, un-Rubylike Ruby to get the answer by creating a list of a number's prime factors: def factor(composite) i=1 flag=false primefactors =[] while (i...

Posted Tuesday, April 08, 2008 8:07 PM by mfedner | with no comments

Filed under: , ,