08-13-2023, 12:23 AM
(07-08-2023, 04:39 PM)Jack Wrote: while I am an advocate for explicit variable declaration, your program David, runs almost 3 times faster with DefLng A-S than with option _explicit and Dim As Long i, iq, j, isum, jk, kmax, knum, kI don't think that's the reason for the speed increase. A test with and without $Console already shows different times.
The results are peculiar. Without "Print knum" only half the time as with?
![[Image: Anti-Prim-mit-Console2023-08-13.jpg]](https://i.ibb.co/N9rtypf/Anti-Prim-mit-Console2023-08-13.jpg)
![[Image: Anti-Prim-ohne-Console2023-08-13.jpg]](https://i.ibb.co/1289MVN/Anti-Prim-ohne-Console2023-08-13.jpg)
![[Image: Anti-Prim-mit-Console-Uwi2023-08-13.jpg]](https://i.ibb.co/2KHwffv/Anti-Prim-mit-Console-Uwi2023-08-13.jpg)
![[Image: Anti-Prim-mit-Console-Uwi-ohne-knum2023-08-13.jpg]](https://i.ibb.co/p17ZwWm/Anti-Prim-mit-Console-Uwi-ohne-knum2023-08-13.jpg)