mirror of
https://github.com/TheAlgorithms/Ruby
synced 2025-02-03 08:46:02 +01:00
Update project_euler/problem_010/sol1.rb
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
This commit is contained in:
parent
90101189b1
commit
4501f7fd99
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue