![]() |
|
|
#1 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17·251 Posts |
I finished that GIMPS number today and started on my NPLB range, and it's brought up this question in my mind: What would be a good way to easily see if my LLR found a prime? It's just one core on my computer, so no worries about getting it from multiple files.
Maybe a program to monitor the result file? (referring to the one you name, but lresults.txt would work too, just in a different way) It only puts the primes in there, right? So if somebody has some script to see when it gets edited, that'd work. |
|
|
|
|
|
#2 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
141518 Posts |
Quote:
The file that you pick a name for only logs primes, and in the same format that the input file comes in. To check if you found a prime, open the file that you chose as an LLR output file, and if there's two or more lines in there (the first one is just the NewPGen header line, so you can ignore it), you've found some primes! (The lines listing actual primes are formatted like this: "k n".) As for an automated program to notify you when you've found a prime, I know LLRnet can be set up to execute a given shell script/batch file/program whenever it finds a prime, but manual LLR has no such function. However, it would be possible to write a program to watch the LLR output file (the one containing primes only) for primes, and notify you when you find one. I'd be glad to try making a little program to do the trick.
Last fiddled with by mdettweiler on 2008-02-25 at 21:14 Reason: typo |
|
|
|
|
|
|
#3 | |
|
May 2007
Kansas; USA
33×5×7×11 Posts |
Quote:
Code:
5000000000000:M:1:2:258 945 350126 Code:
5000000000000:M:1:2:258 Anon, that'd be cool to have a notifying program. I'd be interested in getting it from you or if you can post it here, I'm sure some others might be interested also. Gary |
|
|
|
|
|
|
#4 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3·2,083 Posts |
Quote:
![]() Please note that it will almost definitely be written in Perl, which means that if you're using Windows (which doesn't come with Perl by default) you'll need to download and install Perl from http://www.activeperl.com. (Installing it, and running programs with it, is a pretty straightforward process.) |
|
|
|
|
|
|
#5 |
|
Mar 2006
Germany
23·3·112 Posts |
i'm using (for my quad with now many folders on LLRnet) a batch file like this:
Code:
@echo off echo Port 100 cd LLRnet100_1 find "is prim" lresults.txt cd.. cd LLRnet100_2 find "is prim" lresults.txt cd.. cd LLRnet100_3 find "is prim" lresults.txt cd.. cd LLRnet100_4 find "is prim" lresults.txt cd.. pause the 'find' command is here because LLRnet does not save found primes in a seperate file. for 'normal' LLR you can use this batch: Code:
@echo off echo My primes cd nplb_1 type prim.txt cd.. cd nplb_2 type prim.txt cd.. cd nplb_3 type prim.txt cd.. cd nplb_4 type prim.txt cd.. pause hope this helps. best would be something that popup a request/window whenever a prime is found! karsten |
|
|
|
|
|
#6 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
426710 Posts |
Thanks for all the info. I actually already knew a good portion of it, since I've been playing around with LLR in the last month, but I guess I should've said what I know already if I didn't want to get the whole info.
Any rough ETA on when you could make that Perl program? In the mean time, I'm going to google around for a program to monitor file changes. Edit: I just found http://www.download.com/File-Monitor...html?tag=lst-1 and http://www.plsys.com/products/filemonitor/. The second looks like a more mature product, but seems Mac-focused. I'm going to try out that first one... Edit2: The first one is a Yahoo Widget...well never mind that. Two more: http://www.download.com/logview4net/...html?tag=lst-4 http://www.download.com/File-Alert-M...html?tag=lst-4 Last fiddled with by Mini-Geek on 2008-02-25 at 21:56 |
|
|
|
|
|
#7 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3×2,083 Posts |
Quote:
![]() When completed, I'm hoping for it to be able to send email notifications of new primes found automatically.
|
|
|
|
|
|
|
#8 |
|
May 2007
Kansas; USA
289B16 Posts |
Karsten's idea seems very good and very easy. Would that suit your needs?
I think I may do Karsten's idea myself, especially for rallies. |
|
|
|
|
|
#9 | ||
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10000101010112 Posts |
Quote:
Quote:
Edit: I edited it to the following. It only checks the one file, and automatically closes after 2 seconds. Also, I had it find it off of lresults.txt because then it returns the longer, nicer-looking full result line, instead of just a few numbers. And it means that if there's none it shows dashes instead of just one line of numbers, making it stick out even more when there is a prime. Some of this is more useful/necessary because I only have it up 2 seconds. Code:
@echo off echo My primes find "!" lresults.txt ping -n 2 127.0.0.1 > NUL Last fiddled with by Mini-Geek on 2008-02-25 at 22:52 |
||
|
|
|
|
|
#10 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
|
|
|
|
|
|
#11 |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
141518 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there independent check for found factors? | bloodIce | PrimeNet | 10 | 2011-03-12 18:51 |
| Check the prime | Vandor | Information & Answers | 3 | 2008-11-27 15:25 |
| prime check myself | Vandor | Software | 1 | 2008-10-10 05:52 |
| Prime check need | bggashnik | Information & Answers | 10 | 2007-04-07 15:26 |
| How to check if a number is a Mersenne prime ? | Unregistered | Software | 6 | 2004-06-19 08:18 |