mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 25 of 41
Search took 0.01 seconds.
Search: Posts Made By: science_man_88
Forum: Puzzles 2010-12-15, 14:27
Replies: 183
Views: 14,446
Posted By science_man_88
composites.

composites.
Forum: Puzzles 2010-12-15, 12:34
Replies: 183
Views: 14,446
Posted By science_man_88
I think we could use p^2=((p-q)^2) mod q to...

I think we could use p^2=((p-q)^2) mod q to eliminate composites there are ways we could use this like for example the difference between odd primes is always 2x for some x so ((2x)^2) mod q can be...
Forum: Puzzles 2010-12-14, 22:21
Replies: 183
Views: 14,446
Posted By science_man_88
p^{2} - q^{2} = 2*\left(\sum_{i=q}^{p}i\right)...

p^{2} - q^{2} = 2*\left(\sum_{i=q}^{p}i\right) -(p+q)

this is more accurate to what i said.
Forum: Puzzles 2010-12-14, 21:54
Replies: 183
Views: 14,446
Posted By science_man_88
I forgot to mention p^2-q^2 can be made into 2*...

I forgot to mention p^2-q^2 can be made into 2* (the sum of the numbers (q-p)) -(p+q)
Forum: Puzzles 2010-12-14, 21:52
Replies: 183
Views: 14,446
Posted By science_man_88
I think I was thinking to find 6n+1 primes from a...

I think I was thinking to find 6n+1 primes from a 6n+1 prime guessing random numbers that are multiples of 6.
Forum: Puzzles 2010-12-14, 21:48
Replies: 183
Views: 14,446
Posted By science_man_88
given primes p and q<p we can show that the...

given primes p and q<p we can show that the composites ruled out are q%((p^2-q^2)%q) mod q above p^2. but i can't take this any further.
Forum: Puzzles 2010-12-14, 21:37
Replies: 183
Views: 14,446
Posted By science_man_88
well I've drowned lol.

well I've drowned lol.
Forum: Puzzles 2010-12-14, 21:04
Replies: 183
Views: 14,446
Posted By science_man_88
if theres a easy formula for calculating the...

if theres a easy formula for calculating the distance between primes that doesn't use a random n in 6n I could see a way to extend it the way it is, but using a shift in vectors.
Forum: Puzzles 2010-12-14, 16:08
Replies: 183
Views: 14,446
Posted By science_man_88
(11:52)>for(m=1,2,a=0;forprime(p=2,7919,a+=p^p;if(...

(11:52)>for(m=1,2,a=0;forprime(p=2,7919,a+=p^p;if(a%(10^m)==0,print(p" "m))
11 1
17 1
67 1
83 1
137 1
191 1
197 1
211 1
227 1
Forum: Puzzles 2010-12-14, 16:06
Replies: 183
Views: 14,446
Posted By science_man_88
(09:07)>v=vector(1000,n,(prime(n)^prime(n))%10) ...

(09:07)>v=vector(1000,n,(prime(n)^prime(n))%10)
%208 = [4, 7, 5, 3, 1, 3, 7, 9, 7, 9, 1, 7, 1, 7, 3, 3, 9, 1, 3, 1, 3, 9, 7, 9, 7, 1, 7, 3, 9...
Forum: Puzzles 2010-12-14, 15:50
Replies: 183
Views: 14,446
Posted By science_man_88
yeah the problem with my script is the for loop...

yeah the problem with my script is the for loop you are complaining about goes through the indexes of an vector so a forprime would only check prime indexes.
Forum: Puzzles 2010-12-14, 13:08
Replies: 183
Views: 14,446
Posted By science_man_88
no changing v to d where it replaces...

no changing v to d where it replaces prime(x)^prime(x) with prime(x)^2 gave 907 as the first term.
Forum: Puzzles 2010-12-14, 12:49
Replies: 183
Views: 14,446
Posted By science_man_88
(08:47)>a=0;for(m=1,100,for(x=1,#v,a=a+v[x];b=10^(...

(08:47)>a=0;for(m=1,100,for(x=1,#v,a=a+v[x];b=10^(m);if(a%b==0,print(prime(x));break()));a=0)
11
661
4397

where

(08:47)>v=vector(1000,n,(prime(n)^prime(n))%10)
Forum: Puzzles 2010-12-14, 12:46
Replies: 183
Views: 14,446
Posted By science_man_88
If so I've got them beat! @CRG so in other...

If so I've got them beat!

@CRG so in other words prime(x) is almost like:

for(y=1,#primelist,if(x==y,return(primelist[x])))
Forum: Puzzles 2010-12-14, 00:56
Replies: 183
Views: 14,446
Posted By science_man_88
flaws: 1) isn't always faster 2) results...

flaws:

1) isn't always faster
2) results of our codes don't line up so why improve performance of something that gives wrong supposedly inaccurate results
3) I'm already in a bad mood as my...
Forum: Puzzles 2010-12-13, 16:41
Replies: 183
Views: 14,446
Posted By science_man_88
with an outer loop I got 11 661 for the start.

with an outer loop I got 11 661 for the start.
Forum: Puzzles 2010-12-13, 14:51
Replies: 183
Views: 14,446
Posted By science_man_88
a=0;for(m=1,2,for(n=1,1000,a=a+prime(n)^prime(n);i...

a=0;for(m=1,2,for(n=1,1000,a=a+prime(n)^prime(n);if(a%(10^m)==0,print(n":"m)));a=0)

like this ?
Forum: Puzzles 2010-12-13, 13:15
Replies: 183
Views: 14,446
Posted By science_man_88
I don't know what you're doing obviously because...

I don't know what you're doing obviously because all I came up with that your description could be is:

a=0;for(n=1,100,a=a+prime(n)^prime(n);print(a%(10^n)))
Forum: Puzzles 2010-04-22, 00:40
Replies: 183
Views: 14,446
Posted By science_man_88
http://bytes.com/topic/c/answers/872854-loop-findi...

http://bytes.com/topic/c/answers/872854-loop-finding-possible-odd-divisors this was my first post there ( surprised it wasn't my last) maybe this can be used as the isprime() part of the pari code.
Forum: Puzzles 2010-04-22, 00:38
Replies: 183
Views: 14,446
Posted By science_man_88
wow this is weird I don't find pari.h in my...

wow this is weird I don't find pari.h in my download ( which i haven't figured out how to install). this must be pari C as it seems to use only pari functions that I know of wish i got it in real C...
Forum: Puzzles 2010-04-21, 15:07
Replies: 183
Views: 14,446
Posted By science_man_88
1274 KB unzipped still was over 400 when...

1274 KB unzipped still was over 400 when zipped/RAR
Forum: Puzzles 2010-04-21, 14:06
Replies: 183
Views: 14,446
Posted By science_man_88
thanks I'll write it to a .htm.txt ...

thanks I'll write it to a .htm.txt

print1("<table>\n<tr>");d=0;s=0;forprime(p=2,5000,s=s+p^2;d=d+1;print1("<td>"p ":"s"</td>");if(d==10,print1("</tr>\n<tr>");d=0));print1("</tr></table>")
that's...
Forum: Puzzles 2010-04-21, 12:45
Replies: 183
Views: 14,446
Posted By science_man_88
<table>...

<table>...
Forum: Puzzles 2010-04-21, 12:26
Replies: 183
Views: 14,446
Posted By science_man_88
<table><tr> ...

<table><tr>
<td>2:4</td><td>3:13</td><td>5:38</td><td>7:87</td><td>11:208</td><td>13:377</td><td>17:666</td><td>19:1027</td><td>23:1556</td><td>29:2397</td></tr>...
Forum: Puzzles 2010-04-21, 11:28
Replies: 183
Views: 14,446
Posted By science_man_88
CRG I got gp2c but can't understand where the...

CRG I got gp2c but can't understand where the install is am I missing something ?
Showing results 1 to 25 of 41

 
All times are UTC. The time now is 06:48.

Wed Oct 21 06:48:03 UTC 2020 up 41 days, 3:59, 0 users, load averages: 1.08, 1.27, 1.35

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.