Skip to content

Commit fa6ebf5

Browse files
committed
Update sol1.rb
follow the guideline
1 parent 7804fad commit fa6ebf5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

project_euler/problem_010/sol1.rb

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

25-
def solution?(max_total)
25+
def solution?()
26+
max_total = 2000000
2627
sum = 1
2728
num = 2
2829
value = 1
@@ -38,5 +39,5 @@ def solution?(max_total)
3839
result = sum
3940
end
4041

41-
answer = solution?(2000000)
42+
answer = solution?()
4243
p answer

0 commit comments

Comments
 (0)