mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-11-16 19:50:00 +01:00
Update sol1.rb
This commit is contained in:
parent
fa6ebf5f78
commit
90101189b1
1 changed files with 2 additions and 3 deletions
|
@ -22,8 +22,7 @@ def is_prime?(number)
|
|||
result = value
|
||||
end
|
||||
|
||||
def solution?()
|
||||
max_total = 2000000
|
||||
def solution(max_total = 2000000)
|
||||
sum = 1
|
||||
num = 2
|
||||
value = 1
|
||||
|
@ -39,5 +38,5 @@ def solution?()
|
|||
result = sum
|
||||
end
|
||||
|
||||
answer = solution?()
|
||||
answer = solution()
|
||||
p answer
|
Loading…
Reference in a new issue