![]() |
|
|
#12 |
|
Feb 2004
France
22·229 Posts |
|
|
|
|
|
|
#13 | |
|
"Mark"
Apr 2003
Between here and the
2×32×353 Posts |
Quote:
BTW, searched to 2e11 with no new solutions. I stopped as I don't expect another solution anytime soon. I could run it to 1e13 in a couple of weeks, but why waste my resources. Maybe I'll come back to it in the future, but I've got too many things on my plate at the moment that require horsepower. |
|
|
|
|
|
|
#14 |
|
Feb 2004
France
22·229 Posts |
Thanks.
But ... how do you compile it ? gcc -m64 consec.c expmod.s mulmod.s shows problems with // comments in .s files and also when I've removed them (I'm not an expert in compiling assembler ...). T. With // comments: expmod.s:1: Error: junk at end of line, first unrecognized character is `/' Without // comments: expmod.s:6: Error: unsupported relocation against r26 |
|
|
|
|
|
#15 | |
|
"Mark"
Apr 2003
Between here and the
2·32·353 Posts |
Quote:
-mregnames After that, use google. |
|
|
|
|
|
|
#16 | |
|
Aug 2002
Portland, OR USA
2×137 Posts |
Uh, why do your programs list 7 and 11?
They are not solutions.Quote:
|
|
|
|
|
|
|
#17 |
|
"Robert Gerbicz"
Oct 2005
Hungary
27168 Posts |
I'm checking (S(p)*X2)%p, so if S(p) is divisible by p then I get that solution but we can get some false solutions (like 7 and 11), because it is possible that X2 is divisible by p, but S(p) isn't divisible by p. Note that there wasn't other false solutions up to 2e11 or something like that, what Rogue searched and it is easy to write a fast independent program to see if it is a good solution or not.
|
|
|
|
|
|
#18 |
|
Aug 2002
Portland, OR USA
2×137 Posts |
Ok, that makes sense. I was thinking that the magnitude of p compared to that of the lcm factors would prevent false hits for small p, but it seems to prevent them for large p.
Some of the lcm factors: Code:
7 11 13 37 41 53 73 79 101 137 239 271 4649 9091 9901 21649 333667 513239 909091 265371653 ... I have access to a PICK OS machine, which is string based. Programs, numbers and variables are all dynamic length strings. So I wrote a brute force program for this puzzle in compiled PICK BASIC, with the inner loop like this: Code:
M = 1
FOR N = 2 TO P
M = MOD(M:N, P)
NEXT N
IF M ELSE PRINT P
ps. I could port over your ingenius method, but since it doesn't require concatenation, there would be no advantage. Bruce Last fiddled with by Maybeso on 2006-09-15 at 19:12 Reason: post script |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Small but nontrivial prime puzzle | mart_r | Puzzles | 85 | 2018-02-11 18:55 |
| SQL puzzle | Prime95 | Programming | 1 | 2017-05-13 16:01 |
| Some puzzle | Harrywill | Puzzles | 4 | 2017-05-03 05:10 |
| New puzzle about prime | wpolly | Puzzles | 2 | 2009-07-02 20:27 |
| 4 4s puzzle | henryzz | Puzzles | 4 | 2007-09-23 07:31 |