There was a programming challnege:
On average, how many times do we have to roll the dice to get the number 6? Imagine that the people of your country each have a dice. They roll until they get the number 6. Then, they announce how many times they had to roll the dice to got 6. The question is, what is the average of these numbers?
I solve it by python and got answer. the answer is 6. But my question is about procceing time, my code use only one core. python for 1 milion :