in reply to Cumulative Guessing JAPH

This is really fun to watch and was fun to decipher.

Why would this take a long time on an old PC?

The number of iterations is independent of CPU speed, and each iteration has a deliberate delay. In my testing, even on my slowest PC, CPU time is less than 10% of wall clock time, and the delay code itself consumes over 90% of the CPU time.

Replies are listed 'Best First'.
Re^2: Cumulative Guessing JAPH
by kschwab (Vicar) on Jan 07, 2021 at 19:12 UTC

    Why would this take a long time on an old PC?

    Yes, it's wouldn't. Just encouraging people to wait it out, it can run more than 10 seconds or so.