mersenneforum.org GAPS BETWEEN PRIME PAIRS (Twin Primes)
 Register FAQ Search Today's Posts Mark Forums Read

2020-01-08, 13:16   #155
robert44444uk

Jun 2003
Oxford, UK

75516 Posts

Quote:
 Originally Posted by Bobby Jacobs . 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

2020-01-11, 13:35   #156
mart_r

Dec 2008
you know...around...

26·32 Posts

Quote:
 Originally Posted by pinhodecarlos 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.

2020-01-11, 14:00   #157
pinhodecarlos

"Carlos Pinho"
Oct 2011
Milton Keynes, UK

7·673 Posts

Quote:
 Originally Posted by mart_r 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.

2020-01-11, 15:38   #158
mart_r

Dec 2008
you know...around...

26·32 Posts

Quote:
 Originally Posted by pinhodecarlos Nope, can’t save the results onto a txt file.
Then I take 6.8e15 to 7.0e15.

2020-01-14, 01:40   #159
storm5510
Random Account

Aug 2009
U.S.A.

11·139 Posts

Quote:
 Originally Posted by robert44444uk 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?

2020-01-14, 07:28   #160
robert44444uk

Jun 2003
Oxford, UK

35258 Posts

Quote:
 Originally Posted by storm5510 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. 2020-01-14, 08:23 #161 ATH Einyen Dec 2003 Denmark 2·13·113 Posts Quote:  Originally Posted by storm5510 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. 2020-01-14, 12:17 #162 storm5510 Random Account Aug 2009 U.S.A. 27718 Posts 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
 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

 2020-01-14, 13:11 #163 storm5510 Random Account     Aug 2009 U.S.A. 101111110012 Posts 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
2020-01-14, 16:01   #164
CRGreathouse

Aug 2006

3×52×79 Posts

Quote:
 Originally Posted by storm5510 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.

2020-01-14, 16:09   #165
storm5510
Random Account

Aug 2009
U.S.A.

11·139 Posts

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Bobby Jacobs Prime Gap Searches 52 2020-08-22 15:20 Pietro Maiorana Twin Prime Search 8 2019-09-26 23:07 hal1se Miscellaneous Math 13 2018-11-05 16:34 carpetpool Miscellaneous Math 3 2017-08-10 13:47 PawnProver44 Miscellaneous Math 10 2016-04-10 19:32

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

Fri Sep 25 07:30:30 UTC 2020 up 15 days, 4:41, 0 users, load averages: 1.82, 1.82, 1.61