mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Prime Gap Searches

Reply
 
Thread Tools
Old 2020-01-08, 13:16   #155
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Oxford, UK

187710 Posts
Default

Quote:
Originally Posted by Bobby Jacobs View Post
. Just like regular prime gaps, all twin prime gaps with record merit are maximal twin prime gaps.
Not the case as defined. For a gap of 10 or less, the record merit is 2.06 for the gap following 77. However it is not a maximal gap because the gap of 12 at 58 is.

Code:
1      6  FMR  R.Rathbun   1998   1.78    0                 1
    2     12  FM   R.Rathbun   1998   1.61    1                 3
    3     18  FM   R.Rathbun   1998   1.55    2                 7
    4     24  F    R.Rathbun   1998   0.76    1               103
    5     30  FMR  R.Rathbun   1998   2.00    4                12
    6     36  FM   R.Rathbun   1998   1.41    3                52
    7     42  F    R.Rathbun   1998   0.93    5               378
    8     48  F    R.Rathbun   1998   1.60    4                87
    9     54  F    R.Rathbun   1998   1.25    4               313
   10     60  F R  R.Rathbun   1998   2.06    7                77
   11     66  F    R.Rathbun   1998   1.56    7               287
   12     72  FMR  R.Rathbun   1998   2.69   10                58

Last fiddled with by robert44444uk on 2020-01-08 at 13:18
robert44444uk is offline   Reply With Quote
Old 2020-01-11, 13:35   #156
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

26×32 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
Would like to take from 6.8e15 to 7.2e15 but I can't seem to manage to write the output on an txt file. Is the below correct? Will it only write all DOS command output at the end of the run?
Is your program up and running now?

I'd like to take 7.2e15 to 7.4e15 then.
mart_r is offline   Reply With Quote
Old 2020-01-11, 14:00   #157
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

126716 Posts
Default

Quote:
Originally Posted by mart_r View Post
Is your program up and running now?

I'd like to take 7.2e15 to 7.4e15 then.
Nope, can’t save the results onto a txt file.
pinhodecarlos is online now   Reply With Quote
Old 2020-01-11, 15:38   #158
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

10010000002 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
Nope, can’t save the results onto a txt file.
Then I take 6.8e15 to 7.0e15.
mart_r is offline   Reply With Quote
Old 2020-01-14, 01:40   #159
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

11×139 Posts
Default

Quote:
Originally Posted by robert44444uk View Post
Hi there, happy New Year.

The way to do this is to edit the test.bat file just changing the limits, save it and then at the command prompt type in

test.bat >> results.txt
This is a redirect append. Nothing would be shown on the screen. I do not believe anyone would want to run a process for long periods of time without being able to see what it is doing. I have done several searches over the years trying to find a way to duplicate the screen output to a text file and found nothing. It would have to be done line-by-line. Reading the screen buffer at every update might work. How? I have no idea. Would it not have been more simple for everyone if this program wrote out a text file as it went along?
storm5510 is offline   Reply With Quote
Old 2020-01-14, 07:28   #160
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Oxford, UK

1,877 Posts
Default

Quote:
Originally Posted by storm5510 View Post
This is a redirect append. Nothing would be shown on the screen. I do not believe anyone would want to run a process for long periods of time without being able to see what it is doing. I have done several searches over the years trying to find a way to duplicate the screen output to a text file and found nothing. It would have to be done line-by-line. Reading the screen buffer at every update might work. How? I have no idea. Would it not have been more simple for everyone if this program wrote out a text file as it went along?
Talk to Microsoft about that! It is annoying but true AFAIK.

You can always just open a local copy of the write-to file by clicking on it to see your output to date. That's what I do to see my progress. As long as you use the $| =1; command in your perl file, the local copy will be right up to date.
robert44444uk is offline   Reply With Quote
Old 2020-01-14, 08:23   #161
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

2×13×113 Posts
Default

Quote:
Originally Posted by storm5510 View Post
This is a redirect append. Nothing would be shown on the screen. I do not believe anyone would want to run a process for long periods of time without being able to see what it is doing. I have done several searches over the years trying to find a way to duplicate the screen output to a text file and found nothing. It would have to be done line-by-line. Reading the screen buffer at every update might work. How? I have no idea. Would it not have been more simple for everyone if this program wrote out a text file as it went along?
In Linux the command is called "tee", I'm using a Windows version of tee: wintee or "wtee":
https://code.google.com/archive/p/wintee/downloads

Usage:

test.bat | wtee.exe -a output.txt

The "-a" means append to the file output.txt, without it any existing output.txt will be overwritten.
ATH is offline   Reply With Quote
Old 2020-01-14, 12:17   #162
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

11·139 Posts
Default

I found an open-source application which can do this, mtee. The info is below, and archive attached. As far as I know, this is Windows only.


Quote:
MTEE [/A | /U] [/C] [/D] [/T] [/E] [[/+] file] [...]

/A Convert output to ANSI. Default output is same as input.
/C Continue if errors occur opening/writing to file (advanced users only).
/D Prefix each line of output with local date in YYYY-MM-DD format.
/T Prefix each line of output with local time in HH:MM:SS.MSS format.
/U Convert output to UNICODE. Default output is same as input.
/E Exit with exit code of piped process.
/+ Append to existing file. If omitted, existing file is overwritten.
file File to receive the output. File is overwritten if /+ not specified.
... Any number of additional files. Use /+ before each file to append.

Example usage:-

1) script.cmd | mtee result.txt
2) ftp -n -s:ftp.scr | mtee local.log /+ \\server\logs$\remote.log
3) update.cmd 2>&1 | mtee/d/t/+ log.txt

1) Sends the output of script.cmd to the console and to result.log. If
result.txt already exists, it will be overwritten.
2) Sends output of automated ftp session to the console and two log files,
local.log is overwritten if it already exists, remote.log is appended to.
3) Redirects stdout and stderr from update.cmd to console and appends to
log.txt. Each line is prefixed with local date and time.
I gave it a simple test in my mfaktc folder. "dir | mtee copy.txt." The copy was identical. It is very fast, no lag. I put the binary in my C:\Windows folder. That way, it is in the path. The source code is part of the archive. A Linux compile may be possible.

This works fine:

Code:
@echo off

SET kmin="6422555400000000"
SET kmax="6422555800000000"
SET mingap=3000

twingaps.exe -k1 %kmin% -k2 %kmax% -mingap %mingap% | mtee output.txt
Attached Files
File Type: zip ritchielawrence-mtee-v2.21-7-gc849b52.zip (59.3 KB, 21 views)

Last fiddled with by storm5510 on 2020-01-14 at 12:42 Reason: Append
storm5510 is offline   Reply With Quote
Old 2020-01-14, 13:11   #163
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

11·139 Posts
Default

As a test, I ran these with Twingaps2. Someone can add these to their collection when they get this far.

Code:
70000000000000000 to 70000010000000000.

3241 70000000742774272
3037 70000000884087048
3190 70000001683587628
3226 70000001881836407
3069 70000003622611083
3054 70000003743086993
3025 70000004039050570
3730 70000004096269385
3078 70000004286899092
3304 70000004718546213
3360 70000005165727143
3030 70000006024360913
3780 70000006063433973
3126 70000006152059987
3225 70000006636540232
3148 70000006816151767
3108 70000007099673997
3069 70000007576727858
3196 70000008246249877
3708 70000009408309507
3065 70000009943676615
storm5510 is offline   Reply With Quote
Old 2020-01-14, 16:01   #164
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×52×79 Posts
Default

Quote:
Originally Posted by storm5510 View Post
I found an open-source application which can do this, mtee. The info is below, and archive attached. As far as I know, this is Windows only.
It's based on the linux command tee.
CRGreathouse is offline   Reply With Quote
Old 2020-01-14, 16:09   #165
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

11×139 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
It's based on the linux command tee.
I believe this is built into some, or maybe all, flavors of Linux, is it not?
storm5510 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gaps between maximal prime gaps Bobby Jacobs Prime Gap Searches 52 2020-08-22 15:20
I found a sieve to search all pairs of twin primes Pietro Maiorana Twin Prime Search 8 2019-09-26 23:07
find very easy twin prime in the infamy twin primes hal1se Miscellaneous Math 13 2018-11-05 16:34
Mersenne Primes p which are in a set of twin primes is finite? carpetpool Miscellaneous Math 3 2017-08-10 13:47
Gaps of Primes? PawnProver44 Miscellaneous Math 10 2016-04-10 19:32

All times are UTC. The time now is 07:53.

Fri Sep 25 07:53:11 UTC 2020 up 15 days, 5:04, 0 users, load averages: 1.99, 1.64, 1.45

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.