Mine
public ruby v1 · immutablerequire 'count'a = [1]f = 0j = 0while f < 500 i = 1 f = 1 x = 0 a.each do |y| x += y end puts x while i <= x/2 do if x%i == 0 then f+=1 end i+=1 end a.push(a[j]+1) j+=1endputs ''puts fputs xrequire 'count'a = [1]f = 0j = 0while f < 500 i = 1 f = 1 x = 0 a.each do |y| x += y end puts x while i <= x/2 do if x%i == 0 then f+=1 end i+=1 end a.push(a[j]+1) j+=1endputs ''puts fputs x