Update sol1.rb

follow the guideline
This commit is contained in:
domix80 2023-02-21 18:18:37 +01:00
parent 7804fad30f
commit fa6ebf5f78

View file

@ -22,7 +22,8 @@ def is_prime?(number)
result = value
end
def solution?(max_total)
def solution?()
max_total = 2000000
sum = 1
num = 2
value = 1
@ -38,5 +39,5 @@ def solution?(max_total)
result = sum
end
answer = solution?(2000000)
answer = solution?()
p answer