![]() |
|
|
#331 | |
|
Aug 2006
597910 Posts |
Quote:
You only gave the first two possibilities, but the third happens with (289 - 1)(2107 - 1) = 100433627766186892221372630609062766858404681029709092356097 and presumably occurs infinitely often. |
|
|
|
|
|
|
#332 | |
|
Aug 2006
3·1,993 Posts |
Quote:
Although he did miss one case, I guess because it wasn't listed in A165223.
|
|
|
|
|
|
|
#333 | |
|
May 2010
Prime hunting commission.
32208 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-08-13 at 00:04 |
|
|
|
|
|
|
#334 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
|
|
|
|
|
|
#335 |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Also: Are there any sieving programs for n * k! + 1 ?
Nevermind: PARI does the work here. I'll set up a program which can act as an amateur sieve: kfacsieve(x, n, a, m) = { for(p=x,n, if((x*n+1)%p==0, ... Last fiddled with by 3.14159 on 2010-08-13 at 00:20 |
|
|
|
|
|
#336 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
Code:
for(n=1,100,for(k=1,100,if(isprime(n*k!+1),print(n","k)))) |
|
|
|
|
|
|
#337 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Without using (isprime(x))
Also: @CRG: I tried this: Code:
d(a,n,x,m)=for(n=a,x,if(t(n*m!+1)!=n,print("trivial composite","factor is",t(n*m!+1)));if(t(n*m!+1)==n,print(n*m!+1)))
I get the error: "Too many parameters in user-defined function". I don't see where the excess params are at: I introduced no new variables into the commands. Or is it treating t as a variable? Last fiddled with by 3.14159 on 2010-08-13 at 00:49 |
|
|
|
|
|
#338 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#339 | |
|
May 2010
Prime hunting commission.
110100100002 Posts |
Quote:
Reason: Primeform too slow! Last fiddled with by 3.14159 on 2010-08-13 at 00:52 |
|
|
|
|
|
|
#340 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#341 |
|
May 2010
Prime hunting commission.
69016 Posts |
Because you have not defined t yet. I have.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |