mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Programming (https://www.mersenneforum.org/forumdisplay.php?f=29)
-   -   Small win32 program, range of time to do a TF (https://www.mersenneforum.org/showthread.php?t=1120)

dsouza123 2003-09-16 13:20

Small win32 program, range of time to do a TF
 
1 Attachment(s)
Fantastic !

A spot for programming.

I have written a small program that will show the time range for trial factoring. It reads the results.txt file and brings up a message box with a list of the time taken to finish TFs for different bit lengths. It is a Win32 program, it needs to be in the same directory as the results.txt file to work. It is written in delphi. To install just copy the file Quickest.exe into the directory with the results.txt file.

dsouza123 2003-10-09 16:04

1 Attachment(s)
Updated version, It now checks if the results.txt file is present in the directory/folder and gives an appropriate message if it is missing.

PrimeCruncher found a bug, sometimes when the factor calculation spans months it would only take the difference in days and ignore the month. Fixed.

Thanks PrimeCruncher !

The fast end of a range was always correct (unless month span bug was an issue). The slow end could miss the very slowest if it appeared later. Now the very slowest for the range is included. The rest of the values with the emphasis on faster results is the same as before.

They way it works is: when it finds a result, figures the time it took, if it is faster than the current fastest for that bit depth ( 2^67 for example ) it is added to the list. Now it also checks if the time is slower than the slowest and is added to a special slowest list.

After all the results have been processed the slowest is added.

The results are sorted into bit depths and within bit depths by elapsed time.

I could change the slowest part to add a new slowest when found to the list, but it will increase the size of the output possibly pushing it off the screen. So most likely not.

Now the complete range is displayed with the emphasis on the faster results.

I wrote this program originally to find the fastest times for completing a TF ( trial factor ) at different bit depths so I wasn't concerned with the slowest/worst times, but since I said it would get the range I figure it should at least have the slowest and fastest at a given bit depth.


All times are UTC. The time now is 14:10.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.