Project Euler Problem 3
Problem 3 02 November 2001 The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? Answer: 6857 Solution in Perl my $num = 600851475143; my $p; for ( $p = 2 ; ; $p++ ) { while ( $num % $p == 0 ) { $num /= $p; } last if ( $num num2 1) (loop (add1 p) num2)] [else (display p)]))) ; imperative, one loop #lang racket (define (problem3) (define num..