123456789101112131415 |
- #!/usr/bin/ruby
- # Author: Daniel "Trizen" Șuteu
- # License: GPLv3
- # Website: https://github.com/trizen
- # By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
- # What is the 10001st prime number?
- # https://projecteuler.net/problem=7
- # Runtime: 0.135s
- say prime(10_001)
|