Update sol1.rb

Follow the guidelines
This commit is contained in:
domix80 2023-02-21 18:17:13 +01:00
parent de8a63dbc9
commit b6b5873247

View file

@ -24,7 +24,8 @@ def is_prime?(number)
result = value
end
def solution?(nth)
def solution?()
nth = 10001
primes = Array.new()
num = 2
while primes.length < nth
@ -36,5 +37,5 @@ def solution?(nth)
primes[primes.length - 1]
end
answer = solution?(10001)
answer = solution?()
p answer