![]() |
|
|
#2179 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
Code:
for(n=1,100,for(x=1,#MeVec,print1(M(x,n)","));print("::"n))
Code:
(11:01)>for(n=1,#mersenne1,print((2^mersenne1[n]-1)%n)) 0 1 1 3 1 1 1 7 1 1 6 7 5 1 7 15 1 1 12 7 10 1 15 7 1 1 1 3 26 1 1 31 7 7 31 31 31 31 1 7 Last fiddled with by science_man_88 on 2011-02-11 at 22:06 |
|
|
|
|
|
|
#2180 | |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
Quote:
it can't act modulo( checked with second argument as 3) so I'm stumped, oh never mind I think I realize which valuation it's talking of after going through : http://en.wikipedia.org/wiki/Valuation_(mathematics) Last fiddled with by science_man_88 on 2011-02-12 at 01:16 |
|
|
|
|
|
|
#2181 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
Code:
0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,::3 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,::4 3,0,3,1,1,3,1,1,1,3,3,1,3,1,1,1,1,1,3,1,3,3,3,3,3,1,1,3,1,1,1,3,3,1,3,3,3,3,1,::7 3,7,31,43,43,31,43,43,43,31,31,43,31,43,43,43,43,43,31,43,31,31,31,31,31,43,43,31,43,43,43,31,31,43,31,31,31,31,43,::84 Last fiddled with by science_man_88 on 2011-02-12 at 14:31 |
|
|
|
|
|
|
#2182 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Code:
minimumprime(x) = if((x-2)%2==1,print(6*((x-2)-floor((x-2)*.5))-1),print(6*floor((.5*(x-2)))+1)) |
|
|
|
|
|
#2183 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
and one thing I just learned by playing alt + 1(numpad) gets you back to the start of text and yes I get it's the control character start of header. something tells me if i every make long scripts that act as one line in PARI I'll be able to use it.
|
|
|
|
|
|
#2184 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#2185 | |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
Quote:
Code:
v=vector(13,n,minimumprime(n));v[1]=2;v[2]=3;c=[];a=0;for(x=1,#v,for(y=1,x-1,if(v[x]%v[y]==0,a=a+1));if(!a>1,c=concat(c,[v[x]]))) Last fiddled with by science_man_88 on 2011-02-13 at 01:45 |
|
|
|
|
|
|
#2186 |
|
Aug 2006
3·1,993 Posts |
I don't know what the function is supposed to return, nor by what measure it's off by 5000.
|
|
|
|
|
|
#2187 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
|
|
|
|
|
|
#2188 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#2189 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
![]() |
| Thread Tools | |
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 |