mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2003-09-16, 13:20   #1
dsouza123
 
dsouza123's Avatar
 
Sep 2002

29616 Posts
Default Small win32 program, range of time to do a TF

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.
Attached Files
File Type: zip quickest.zip (8.6 KB, 237 views)
dsouza123 is offline   Reply With Quote
Old 2003-10-09, 16:04   #2
dsouza123
 
dsouza123's Avatar
 
Sep 2002

12268 Posts
Default

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.
Attached Files
File Type: zip quick1.zip (9.0 KB, 194 views)
dsouza123 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
A small factoring program Yamato Factoring 2 2007-11-21 23:29
Program - primes between number/range Unregistered Software 2 2006-08-22 22:54
Small range with high density of factors hbock Lone Mersenne Hunters 1 2004-03-07 19:51
small matlab program for results file tom11784 Programming 2 2003-11-29 14:30
Small win32 program to show system uptime and more dsouza123 Programming 0 2003-09-28 22:28

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


Fri Jul 16 14:10:13 UTC 2021 up 49 days, 11:57, 2 users, load averages: 1.70, 1.85, 1.73

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.