mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   PARI/GP (https://www.mersenneforum.org/forumdisplay.php?f=155)
-   -   PARI's commands (https://www.mersenneforum.org/showthread.php?t=13636)

CRGreathouse 2010-08-16 16:39

[QUOTE=3.14159;225688]Not exactly what I said, but cool strawman, anyway.[/QUOTE]

You claimed that there is no option for storing the information. This seems to directly imply that I could not have stored the information. Combined with the fact that I claimed to have, your claim is tantamount to calling my statement a lie.

So no, not really a strawman at all.

kar_bon 2010-08-16 16:54

Only 2 threads he posted and read more about others and forgot the tiny letter "v" used in several posts to storing information?

CRGreathouse 2010-08-16 17:05

[QUOTE=kar_bon;225694]Only 2 threads he posted and read more about others and forgot the tiny letter "v" used in several posts to storing information?[/QUOTE]

Yes, or whatever variable you like. An integer suffices, with bitor/bitand/bitxor; a vector is a natural choice; a vectorsmall is better; for space, a custom data structure packing 32 or 64 numbers into each component of a vectorsmall is a better choice.

3.14159 2010-08-16 18:52

[QUOTE=CRGreathouse]Yes, or whatever variable you like. An integer suffices, with bitor/bitand/bitxor; a vector is a natural choice; a vectorsmall is better; for space, a custom data structure packing 32 or 64 numbers into each component of a vectorsmall is a better choice.
[/QUOTE]

Excellent. I can only log the removed numbers.

Error in the code snippet: [code]*** too many arguments: ...lift(Mod(-1,p)/(e!),10^b,p,print(n)))));
^------------[/code]

I thought I clearly defined the variables in the code snippet.

science_man_88 2010-08-16 20:31

[QUOTE=3.14159;225674]I thought of a code snippet:
Note: e = variable, not 2.718281828459045..
kfacsieve[COLOR="Red"]([/COLOR]a,x,e,b[COLOR="Red"])[/COLOR] = [COLOR="Yellow"]{[/COLOR]
forprime[COLOR="Lime"]([/COLOR]p=a,x,
forstep[COLOR="Cyan"]([/COLOR]n=lift[COLOR="DarkOrchid"]([/COLOR]Mod[COLOR="Blue"]([/COLOR]-1,p[COLOR="Blue"])[/COLOR]/[COLOR="Magenta"]([/COLOR]e![COLOR="Magenta"])[/COLOR],10^b,p,print[COLOR="DarkOrange"]([/COLOR]n[COLOR="DarkOrange"])[/COLOR][COLOR="Cyan"])[/COLOR]
[COLOR="lime"])[/COLOR];
[COLOR="yellow"]}[/COLOR]


(Please check for any errors I might have made there.)[/QUOTE]


I think I know what's wrong but I don't quite know what the code should be.

want my help ?

3.14159 2010-08-16 20:48

[QUOTE=science_man_88]I think I know what's wrong but I don't quite know what the code should be.

want my help ?[/QUOTE]

That would be of great value.

Also: I'm going to do some work on a c120, hopefully this can manage a new record: (It's probably a p(58-59) * p(61-62))

science_man_88 2010-08-16 20:52

[QUOTE=3.14159;225732]That would be of great value.[/QUOTE]

look at my post that I colored only one parenthesis isn't in a pair of them fix this into a pair.

science_man_88 2010-08-16 21:06

in other words you forgot to close the lift function so it read as too many arguments....

3.14159 2010-08-16 21:08

[QUOTE=science_man_88]in other words you forgot to close the lift function so it read as too many arguments....
[/QUOTE]

Ah, okay. That'll be fixed.

[QUOTE=3.14159]Also: I'm going to do some work on a c120, hopefully this can manage a new record: (It's probably a p(58-59) * p(61-62))
[/QUOTE]

This, I'm going to have to retract. This would have taken me about a month to finish. (Unless I get that damn script working for GGNFS, which I might be able to do if I could find the *correct* directory for msieve.)

science_man_88 2010-08-16 21:21

[QUOTE=3.14159;225736]Ah, okay. That'll be fixed.



This, I'm going to have to retract. This would have taken me about a month to finish. (Unless I get that damn script working for GGNFS, which I might be able to do if I could find the *correct* directory for msieve.)[/QUOTE]

do you have a search function on your OS if so maybe search "mseive + GGNFS"

CRGreathouse 2010-08-16 21:52

[QUOTE=science_man_88;225738]do you have a search function on your OS if so maybe search "mseive + GGNFS"[/QUOTE]

I think he's on Windows, so he could use Start -> Run -> cmd and type "dir/s c:\ggnfs*" and see what comes up.


All times are UTC. The time now is 23:03.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.