In a recent Advent of code (Night 23) I back ported my pascal Solution to Turbo Pascal 7 in DOSBOX... I had to use a file of longint because I couldn't fit 1,000,001 elements in RAM (4 megabytes)... but used a temp file instead. It took 10 minutes instead of 0.25 seconds, but it worked.