Update project_euler/problem_010/sol1.rb

Co-authored-by: Stepfen Shawn <m18824909883@163.com>
This commit is contained in:
domix80 2023-02-23 16:01:35 +01:00 committed by GitHub
parent 90101189b1
commit 4501f7fd99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
#Summation of primes
#The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
#Find the sum of all the primes below two million.
#References: - https://en.wikipedia.org/wiki/Prime_number
#References: https://en.wikipedia.org/wiki/Prime_number
def is_prime?(number)
value = true
if number > 1 and number < 4