Skip to content

Commit 9010118

Browse files
committed
Update sol1.rb
1 parent fa6ebf5 commit 9010118

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

project_euler/problem_010/sol1.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def is_prime?(number)
2222
result = value
2323
end
2424

25-
def solution?()
26-
max_total = 2000000
25+
def solution(max_total = 2000000)
2726
sum = 1
2827
num = 2
2928
value = 1
@@ -39,5 +38,5 @@ def solution?()
3938
result = sum
4039
end
4140

42-
answer = solution?()
41+
answer = solution()
4342
p answer

0 commit comments

Comments
 (0)