PROJECT EULER · #0239
Twenty-two Foolish Primes
A set of disks numbered
What is the probability that we have a partial derangement such that exactly
(Any number of non-prime disks may also be found in or out of their natural positions.)
Give your answer rounded to
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.