Lazy Evaluation

Marina's coding (mis)adventures

Browse by Tags

All Tags » incompetence » euler » ruby (RSS)
Sorry, but there are no more tags available to filter with.
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 Tue, Apr 8 2008 8:07 PM by mfedner | with no comments

Filed under: , ,