![]() |
|
|
#100 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#101 | |
|
Aug 2006
3×1,993 Posts |
Quote:
You said that it wouldn't take "my" and I told you to upgrade. You did, so I'm not aware of any issues you're having. |
|
|
|
|
|
|
#102 |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
@CRG:
For the pseudoprime generator: pseudo(n)=!isprime(n)&isWPRP(n,2) forstep(n=2,1e6,if(pseudo(n),print(n))) ?? P.S: Code saved onto document. @Scienceman: P.S: 690487410473298653431 = 53318149a + 14651927b. a = ?; b = ? Last fiddled with by 3.14159 on 2010-07-21 at 19:02 |
|
|
|
|
|
#103 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
it didn't look like it was doing anything I apparently didn't press enter after the last line lol.
|
|
|
|
|
|
#104 | |
|
Aug 2006
597910 Posts |
Quote:
You'll need to put in a step value to use forstep. In this case you want a step of 2 (and to start at 3): forstep(n=3,1e6,2, -code goes here-) |
|
|
|
|
|
|
#105 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
wel I'm guessing that since you won't stop until I answer it's your usual 2 and 3 lol
|
|
|
|
|
|
#106 | |
|
Aug 2006
135338 Posts |
Quote:
I think you'll find it worthwhile to reverse the logic on that program: print only if an exception is found, rather than on each number. Otherwise it's just going to fill up your screen! |
|
|
|
|
|
|
#107 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
actually so just change everything to not mostly ? Last fiddled with by science_man_88 on 2010-07-21 at 19:28 |
|
|
|
|
|
|
#108 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
got it working for that now and I tested this in 6-7 minutes maybe 8 at most
Code:
(16:38) gp > gettime();test(40000000);gettime(); (16:44) gp > |
|
|
|
|
|
#109 |
|
Aug 2006
3·1,993 Posts |
You can type ## (then enter) to see how long the last command took. If you type # (then enter) then each command from that point on prints out how long it took.
|
|
|
|
|
|
#110 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Goldbach Conjecture | MattcAnderson | MattcAnderson | 4 | 2021-04-04 19:21 |
| Factorial and Goldbach conjecture. | MisterBitcoin | MisterBitcoin | 17 | 2018-01-29 00:50 |
| Goldbach's weak conjecture | MattcAnderson | MattcAnderson | 19 | 2017-03-21 18:17 |
| Goldbach's conjecture | Citrix | Puzzles | 3 | 2005-09-09 13:58 |