123456789101112131415 |
- #!/usr/bin/ruby
- # Author: Daniel "Trizen" Șuteu
- # License: GPLv3
- # Website: https://github.com/trizen
- # The prime factors of 13195 are 5, 7, 13 and 29.
- # What is the largest prime factor of the number 600851475143 ?
- # https://projecteuler.net/problem=3
- # Runtime: 0.128s
- say gpf(600851475143)
|