Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def firstMultiple2(divisors, start)
- x = start
- array_length = divisors.length
- y = 0
- while(1)
- while (y < array_length)
- if x % divisors[y] == 0 then
- return x
- end
- y = y + 1
- end
- y = 0
- x = x + 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment