On 7/22/21 6:14 PM, Branimir Maksimovic wrote:
> On 2021-07-22, DFS <nos...@dfs.com
>> On 7/21/2021 7:16 PM, Branimir Maksimovic wrote:
>>> Beautifull :P
>>> This is latest feature, my poblem512 code in Swift 5.5 :p
>>> (you'll need macOS 12 Monterey and XCode 13 beta).
>> snip code
>>> bmaxa@Branimirs-Air project_euler % time ./Problem512Euler/bin/Problem512Euler
>>> got from sysctl hw.ncpu: 8
>>> ./Problem512Euler/bin/Problem512Euler 352.89s user 0.63s system 399% cpu 1:28.45 total
>> Did you know the creator of the site says the problems should be/are
>> meant to be solved in about one minute?
>> You have to know some math tricks to do that.
> That's not the point. You missed.
> bmaxa@Branimirs-Air project_euler % time ./problem512
> odd prime list size => 24
> 100 => 2007
> odd prime list size => 26355866
> 500000000 => 50660591862310323
> ./problem512 6.52s user 0.46s system 98% cpu 7.082 total