28.02.2019, 20:24
If you add all the previous numbers on each loop, the result you get is the same as the result you get, if you start from 3 and multiply from there. The code I provided produces the same result, as the one you've described.