The same birthday by clock(teebee)

for(n in 1:99)cat(sprintf("n=%d, p=%.8f
",1+n,1-prod(1-1:n/365)))

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

download

return to the top page