...On Intel(R) Core(TM) i5-8600K CPU, Windows 10 20H2, i have 39 second on single core and 7,6 second on multi core. (PS: C++ multicore 6 second). Added C files for gcc compiler in Windows 10 and for Xcode C command line project in MacOS ( tested on Mac mini M2 with single core 16 to 25 sec and multicore 2,3 to 5 second by compiler -O switch). Surprise, same code in JavaScript for M2 chip in Safari: 12,5 sec single core and 3,3 sec multi core. Python version with numba and numpy on MacOS with M2: 3,78 sec, Intel Ultra 5 225F Linux Fedora 43 GNOME(*Intel): 3,64 sec., W11Intel: 3,73; Faster style in python, MacOS M2: 1,81 sec, *Intel & W11Intel: 2,02 sec.; Ultra faster style in python, MacOS M2: 1,24 s - 1,26 s - 1,34 s, *Intel: 1,48 s - 1,50 s, W11Intel: 1,53 - 1,63.