I think this is complicated problem?

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
Alacaster
Posts: 81
Joined: October 16th, 2016, 5:08 pm
Location: Spokane, WA

Re: I think this is complicated problem?

Post by Alacaster » June 15th, 2018, 11:32 pm

Oh and chili . . . What's MT?
You can't be betrayed if you don't have any friends.
Why live? Cause why not.

User avatar
Alacaster
Posts: 81
Joined: October 16th, 2016, 5:08 pm
Location: Spokane, WA

Re: I think this is complicated problem?

Post by Alacaster » June 16th, 2018, 12:34 am

Time is in seconds
Mine:

Code: Select all

Primes  Time Max/Min   Trials  Data
1       0.073 - 0.050   5 
10,000  5.095 - 5.761   5
50,000  147.018         1      6.5 MB

Yumtard's:

Code: Select all

Primes  Time Max/Min   Trials  Data
1       0.031 - 0.019   5        
10,000  5.001 - 6.800   5
50,000  8.170 - 13.7    1      5.8 MB
I basically didn't want to use modulus or division.
You can't be betrayed if you don't have any friends.
Why live? Cause why not.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: I think this is complicated problem?

Post by albinopapa » June 16th, 2018, 5:10 am

MT is multi-threading
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply