mersenneforum.org Leyland Primes (x^y+y^x primes)
 Register FAQ Search Today's Posts Mark Forums Read

2020-09-26, 03:12   #408
rogue

"Mark"
Apr 2003
Between here and the

10111011100102 Posts

Quote:
 Originally Posted by pxp Thank you. Fortunately I had written a note to myself from the last time I ran a .cpp program. Code: g++ xyyx.cpp -o xyyx xyyx.cpp:60:56: warning: format specifies type 'unsigned long long *' but the argument has type 'long *' [-Wformat] if (sscanf(ptr, "%u %llu %u (%u,%u)", &index, &leylandNumber, &length, &x, &y) != 5) The %llu and &leylandNumber were underlined. This was followed by a very similar warning ending in !=4 and finally a third one relating to an fprintf item containing the two offending variables. In spite of the warnings the created xyyx ran to create a list.html from a list.txt. I can probably run this every time I update my a094133.txt document and share it here. A couple of minor issues: Christ van Willegen and Jens Kruse Andersen have lost their surnames and Göran Hemdal has lost the umlauted o (I assume that it is visible in the .txt version).
Try compiling with -m64. A long is 64-bits with -m64 but only 32-bits for -m32 and I assume that the default for the compiler is -m32.

I treat the input as ASCII, so it is likely losing the umlaut in his name. I'm not certain how to fix that.

The code assumes only two portions of the name. It would be easy to fix the parsing in the code to address that.

2020-09-27, 00:01   #409
pxp

Sep 2010
Weston, Ontario

2×7×13 Posts

Quote:
 Originally Posted by rogue Try compiling with -m64.
Yes, if only I knew how to do that. Is it really that important? What does my warnings-ignored converted document lack that a properly compiled conversion file would have?

2020-09-27, 03:19   #410
rogue

"Mark"
Apr 2003
Between here and the

2·3,001 Posts

Quote:
 Originally Posted by pxp Yes, if only I knew how to do that. Is it really that important? What does my warnings-ignored converted document lack that a properly compiled conversion file would have?
You can change the datatype from "long" to "long long" to remove the warning that you showed.

 2020-09-30, 18:26 #411 NorbSchneider     "Norbert" Jul 2014 Budapest 2·72 Posts Another new PRP: 452^50145+50145^452, 133142 digits.
2020-10-01, 01:59   #412
pxp

Sep 2010
Weston, Ontario

2×7×13 Posts

Quote:
 Originally Posted by pxp I have examined all Leyland numbers in the ten gaps between L(37614,265) <91148>, #1735, and L(40210,287) <98832> and found 117 new primes. That makes L(40210,287) #1862 and advances the index to L(40945,328), #1930.
I have examined all Leyland numbers in the gap between L(40945,328) <103013>, #1930, and L(41507,322) <104094> and found 14 new primes. That makes L(41507,322) #1945.

 2020-10-09, 17:34 #413 pxp     Sep 2010 Weston, Ontario 2·7·13 Posts I have examined all Leyland numbers in the gap between L(148999,10) <149000> and L(149999,10) <150000> and found 14 new primes.
2020-10-10, 07:07   #414
pxp

Sep 2010
Weston, Ontario

2·7·13 Posts

Quote:
 Originally Posted by pxp That makes L(41507,322) #1945.
I have examined all Leyland numbers in the three gaps between L(41507,322) <104094>, #1945, and L(222748,3) <106278> and found 38 new primes. That makes L(222748,3) #1986.

 2020-10-19, 12:31 #415 rogue     "Mark" Apr 2003 Between here and the 10111011100102 Posts 29652^5083+5083^29652 is 3-PRP This was an accidental find, in other words, unexpected. I had removed x with fewer than 50 terms from the main sieve to test separately because sieving is less efficient with x that have few terms.
 2020-10-19, 15:03 #416 pxp     Sep 2010 Weston, Ontario 2·7·13 Posts It's actually nice to see another name in the recents. I am still ten days away from discovering this one. Be sure to claim it on PRPTop so that they will be up-to-date.
2020-10-19, 19:17   #417
rogue

"Mark"
Apr 2003
Between here and the

2×3,001 Posts

Quote:
 Originally Posted by pxp It's actually nice to see another name in the recents. I am still ten days away from discovering this one. Be sure to claim it on PRPTop so that they will be up-to-date.
Submitted.

2020-10-22, 08:51   #418
pxp

Sep 2010
Weston, Ontario

2·7·13 Posts

Quote:
 Originally Posted by pxp I began to wonder if any of these L(x,10) is prime. I'm doing a run on a list that I didn't sieve particularly deeply and I can say that for x < 300000 the answer is none.
I finished that run up to 500000 and then decided to do from there to 10^6. I sieved that file to 10^12 resulting in 1309 candidates. The durations total to 293.3 days but distributed equally over 12 cores, 24.4 days. Of course I didn't have the pfgw durations when I started so I guessed at the distribution, resulting in some of the segments taking considerably longer than others. Sadly, no PRPs.

 Similar Threads Thread Thread Starter Forum Replies Last Post Batalov XYYXF Project 16 2019-08-04 00:32 carpetpool Miscellaneous Math 3 2017-08-10 13:47 emily Math 34 2017-07-16 18:44 davar55 Puzzles 9 2016-03-15 20:55 troels munkner Miscellaneous Math 4 2006-06-02 08:35

All times are UTC. The time now is 21:28.

Tue Nov 24 21:28:12 UTC 2020 up 75 days, 18:39, 4 users, load averages: 3.63, 3.57, 3.22

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.