mersenneforum.org Search Results
 Register FAQ Search Today's Posts Mark Forums Read

 Showing results 1 to 25 of 1000 Search took 0.49 seconds. Search: Posts Made By: paulunderwood
 Forum: PARI/GP 2020-08-06, 05:28 Replies: 272 Views: 11,767 Posted By paulunderwood cat test.gp V=read("./myvec.txt"); ... cat test.gp V=read("./myvec.txt"); for(v=1,#V,print(V[v])) echo "[1,2,3,4]" > myvec.txt; gp -q < test.gp 1 2 3 4
 Forum: PARI/GP 2020-08-06, 04:45 Replies: 272 Views: 11,767 Posted By paulunderwood https://rosettacode.org/wiki/Parse_command-line_ar... https://rosettacode.org/wiki/Parse_command-line_arguments#PARI.2FGP "GP exists in a REPL (https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) and so it doesn't make sense to parse...
 Forum: GpuOwl 2020-08-06, 01:11 Replies: 2,391 Views: 134,258 Posted By paulunderwood https://www.thefreedictionary.com/cofactor ... https://www.thefreedictionary.com/cofactor "1. One of two or more contributing factors." :grin:
 Forum: GpuOwl 2020-08-05, 23:42 Replies: 2,391 Views: 134,258 Posted By paulunderwood It looks like the cofactor is given:... It looks like the cofactor is given: 765044109502655639249
 Forum: Math 2020-08-05, 15:06 Replies: 6 Views: 143 Posted By paulunderwood Yes. Addition and subtraction and mod 2^p-1 does... Yes. Addition and subtraction and mod 2^p-1 does not require FFT.
 Forum: Software 2020-08-05, 14:50 Replies: 9 Views: 190 Posted By paulunderwood Prime95/mprime is Intel/AMD X86/64 only. For ARM... Prime95/mprime is Intel/AMD X86/64 only. For ARM you need to run mlucas (https://www.mersenneforum.org/mayer/README.html). Basically: Download the asimd image. bunzip it. tune. communicate...
 Forum: Math 2020-08-05, 13:30 Replies: 6 Views: 143 Posted By paulunderwood You need a data structure to hold the numbers.... You need a data structure to hold the numbers. The simplest would be a one dimensional array (https://en.wikipedia.org/wiki/Array_data_structure#One-dimensional_arrays) and a byte or two indicating...
 Forum: Miscellaneous Math 2020-08-03, 19:36 Replies: 75 Views: 5,735 Posted By paulunderwood House of cards [n,b] = [79786523, 2982537] is a counterexample to the test given in post #74 where r=1. This was overlooked because of the same programming error indicated in post #75. The only thing to be lifted...
 Forum: Miscellaneous Math 2020-08-03, 14:20 Replies: 75 Views: 5,735 Posted By paulunderwood 1+1 selfridges Here is a 1+1 selfridges algorithm: Given a non-square n find b: kronecker(b,n)==1 kronecker(1-b,n)==-1 gcd(4-b,n)==1 gcd(4-2*b,n)==1
 Forum: Miscellaneous Math 2020-08-02, 09:15 Replies: 75 Views: 5,735 Posted By paulunderwood Second draft :book: :mooc:
 Forum: Proth Prime Search 2020-07-31, 22:23 Replies: 158 Views: 35,341 Posted By paulunderwood Congratulations for a top 20 prime! Congratulations for a top 20 prime!
 Forum: Programming 2020-07-31, 11:03 Replies: 53 Views: 8,113 Posted By paulunderwood Here is a gwnum program that tests... Here is a gwnum program that tests Euler+Frobenius as per https://mersenneforum.org/showpost.php?p=552286&postcount=74. :fish1: power_quadratic.c tests over x^2-2*x-2^s which arguably safer than...
 Forum: PARI/GP 2020-07-30, 13:56 Replies: 12 Views: 388 Posted By paulunderwood ?solve solve(X=a,b,expr): real root of... ?solve solve(X=a,b,expr): real root of expression expr (X between a and b), where expr(a)*expr(b)<=0. For logarithmic equations use pen and paper and an internet search engine.
 Forum: Miscellaneous Math 2020-07-30, 01:10 Replies: 75 Views: 5,735 Posted By paulunderwood Answer and warning Apart form the ill-formed question, writing b=s^2 (and found by trial and error) the answer is: (x*(1-s^2))^((n+1)/2) == s*(1-s^2)*kronecker(2*(1-s),n) (mod n, x^2-2*x+s^2), Warning: this...
 Forum: Linux 2020-07-29, 04:04 Replies: 13 Views: 459 Posted By paulunderwood This looks like a problem with unattended... This looks like a problem with unattended upgrades. Remove it (https://ostechnix.com/how-to-disable-unattended-upgrades-on-ubuntu/) with sudo apt remove unattended-upgrades or disable it via sudo...
 Forum: Linux 2020-07-29, 03:31 Replies: 13 Views: 459 Posted By paulunderwood This... This (https://serverfault.com/questions/884597/how-to-find-reason-for-system-reboot-or-shutdown-in-ubuntu-16-04-system) says run the command egrep -ir "(shut|reboot)" /var/log/*
 Forum: Linux 2020-07-29, 02:58 Replies: 13 Views: 459 Posted By paulunderwood Freshly installed Debian has to be coaxed into... Freshly installed Debian has to be coaxed into not suspending (https://wiki.debian.org/Suspend#Disable_suspend_and_hibernation) etc after ~20 minutes with a mask command. I wonder if your problem is...
 Forum: Miscellaneous Math 2020-07-28, 18:53 Replies: 75 Views: 5,735 Posted By paulunderwood Simplification Recap: The solutions to x^2-2^r*x+b=0 are x=2^(r-1)+-sqrt(4^(r-1)-b). Let r=1. Then the solutions are to the equation x^2-2*x+b=0 which are x=1+-sqrt(1-b) We have to have kronecker(1-b,n)==-1,...
 Forum: Miscellaneous Math 2020-07-28, 02:05 Replies: 75 Views: 5,735 Posted By paulunderwood A very short paper :book:
 Forum: Miscellaneous Math 2020-07-27, 14:23 Replies: 75 Views: 5,735 Posted By paulunderwood most general test (revised) I found some counterexamples to the above. The revised test: b%n!=0 !issquare(n) gcd(a^2-b,n)==1 gcd(a^2-2*b,n)==1 gcd(a^2-3*a,n)==1
 Forum: Miscellaneous Math 2020-07-27, 11:51 Replies: 75 Views: 5,735 Posted By paulunderwood To fool 2-PSPs and Carmichael numbers lists... To fool 2-PSPs and Carmichael numbers lists gcd(a^2-3*b,n)==1 is also required. :cool:
 Forum: Miscellaneous Math 2020-07-27, 10:15 Replies: 75 Views: 5,735 Posted By paulunderwood most general test Let x^2-a*x+b=0. The solutions are x=a/2 +- sqrt(a^2-4*b)/2. The test is: b%n!=0 !issquare(n) gcd(a^2-b,n)==1 gcd(a^2-2*b,n)==1 kronecker(a^2-4*b,n)==-1
 Forum: GpuOwl 2020-07-26, 15:06 Replies: 13 Views: 598 Posted By paulunderwood Aha! I have to do the manual results submission... Aha! I have to do the manual results submission in order to enable upload, so it seems.
 Forum: GpuOwl 2020-07-26, 11:52 Replies: 13 Views: 598 Posted By paulunderwood Uploading ability seems to be intermittent. 401... Uploading ability seems to be intermittent. 401 error. I will try later. :smile:
 Forum: Wagstaff PRP Search 2020-07-25, 15:49 Replies: 4 Views: 1,932 Posted By paulunderwood Consider x^2-2*x-1=0. This has solutions x= 1 +-... Consider x^2-2*x-1=0. This has solutions x= 1 +- sqrt(2). But 2^((W-1)/2) == -1 mod W where W=(2^p+1)/3 because kronecker(2,W) == -1. I propose the test: Mod(Mod(1,W)*x,x^2-2*x-1)^(W+1)==-1 for...
 Showing results 1 to 25 of 1000

All times are UTC. The time now is 13:51.

Thu Aug 6 13:51:08 UTC 2020 up 20 days, 9:37, 1 user, load averages: 1.78, 1.81, 1.73