The same birthday by clock

p=1
for n=1,99 do
p=p-p*n/365
print(("n=%d, p=%.8f"):format(n+1,1-p))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page