mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Riesel Prime Search

Reply
 
Thread Tools
Old 2008-03-14, 22:00   #1
n1994
 
Mar 2008

1116 Posts
Default is this prime?

IM NOT SURE IS THIS NUMBER PRIME?
Attached Files
File Type: txt prime10.txt (3.1 KB, 160 views)
n1994 is offline   Reply With Quote
Old 2008-03-14, 22:07   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17·251 Posts
Default

Quote:
Originally Posted by n1994 View Post
IM NOT SURE IS THIS NUMBER PRIME?
Please find it on your own. I know it, and it's easy to find, you really don't need to post here for this. I'll repeat my instructions, just to be sure you have them:
Quote:
Originally Posted by Mini-Geek View Post
http://pari.math.u-bordeaux.fr/pub/p...Pari-2-3-3.exe
1. Download that.
2. Install it.
3. Run gp.exe.
4. Type "isprime(", then copy your long number and paste it in by clicking the C:\ icon in the upper left corner, going to Edit, and clicking Paste (Ctrl+V doesn't work in GP, and right click is disabled), then press ")" and click Enter.
5. See that it says 0, meaning not prime.
6. Stop posting here about things you can obviously find on your own.
If you do need to post another long number, please use the [ code ][ /code ] tags so it doesn't make the page extremely long.
Quote:
Originally Posted by Mini-Geek View Post
I...told...you...how...to...paste...
Once you copy it (you can copy it from this thread, if you like), after you've put the "isprime(" (or "factor(" or "ispseudoprime(" or whatever other command), click the C:\ icon in the upper left of the GP window, go to Edit, and click Paste.
If you have trouble understanding the instructions, please post with what you don't understand.
Pari/GP can find the primality of a number that size easily, use isprime(x).
Mini-Geek is online now   Reply With Quote
Old 2008-03-14, 22:16   #3
n1994
 
Mar 2008

100012 Posts
Default ok 'my problem is that it doesnt work

i put a number in and instead of writing if its prime or not it writes the order(if i write foe example 4 in the first time it will writ me 1)
n1994 is offline   Reply With Quote
Old 2008-03-14, 22:29   #4
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10AB16 Posts
Default

Quote:
Originally Posted by n1994 View Post
i put a number in and instead of writing if its prime or not it writes the order(if i write foe example 4 in the first time it will writ me 1)
%1 = 0
(after running the same command again)
%2 = 0
Is this the sort of thing you're talking about? It's saying "%1", a reference for you to use in later formulas to reference this output, "= 0" meaning not prime (0 for not prime, 1 for prime).
If you're saying it prints something like (assuming you're trying to check 11 for primality) "%1 = isprime11", then you need to put the parentheses around it so it knows you're telling it a command and not saying a name of a new variable or something.
Edit: Try typing isprime(11) and see if it returns "%1 = 1".

Last fiddled with by Mini-Geek on 2008-03-14 at 22:31
Mini-Geek is online now   Reply With Quote
Old 2008-03-14, 22:34   #5
n1994
 
Mar 2008

17 Posts
Default

no it returns %6=(11)
it says six because its the 6 number i tried
n1994 is offline   Reply With Quote
Old 2008-03-14, 22:36   #6
n1994
 
Mar 2008

218 Posts
Default

never mind it works thanx but it doesnt check big numbers
(more then a 100 digits also)

Last fiddled with by n1994 on 2008-03-14 at 22:37
n1994 is offline   Reply With Quote
Old 2008-03-14, 22:43   #7
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by n1994 View Post
no it returns %6=(11)
it says six because its the 6 number i tried
Quote:
Originally Posted by n1994 View Post
never mind it works thanx but it doesnt check big numbers
(more then a 100 digits also)
What's the exact command you're using? Does it give some kind of error message when you try to check numbers over 100 digits?
Mini-Geek is online now   Reply With Quote
Old 2008-03-14, 22:45   #8
n1994
 
Mar 2008

17 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
What's the exact command you're using? Does it give some kind of error message when you try to check numbers over 100 digits?
no im doing what you said isprime(x) but it "cuts" the nuber where the programs end instead of writing the hole number it makes it shorter.
n1994 is offline   Reply With Quote
Old 2008-03-14, 23:01   #9
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by n1994 View Post
no im doing what you said isprime(x) but it "cuts" the nuber where the programs end instead of writing the hole number it makes it shorter.
So when you type isprime(11) it returns "(11)"? isprime() should report a "0" or a "1", with no parentheses.
Mini-Geek is online now   Reply With Quote
Old 2008-03-14, 23:08   #10
n1994
 
Mar 2008

1116 Posts
Default

no that works fine now it returns 1 but if u put a big number it makes it shorter
n1994 is offline   Reply With Quote
Old 2008-03-14, 23:11   #11
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

426710 Posts
Default

Quote:
Originally Posted by n1994 View Post
no that works fine now it returns 1 but if u put a big number it makes it shorter
So isprime(11) returns "1" but if you paste a number instead of typing "11", it returns the full number? Try copying "11", then doing it just like you'd paste a larger number (making sure the command stays "isprime(11)") and double check that it returns "1". Then copy a large number, making sure you have "isprime(" before it and then typing ")" after it, and see if it returns 0 or 1 or something else.
Mini-Geek is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
(M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! dabaichi News 571 2020-10-26 11:02
Twin Prime Days, Prime Day Clusters cuBerBruce Puzzles 3 2014-12-01 18:15
disk died, prime work lost forever? where to put prime? on SSD or HDD? emily PrimeNet 3 2013-03-01 05:49
Prime Cullen Prime, Rest in Peace hhh Prime Cullen Prime 4 2007-09-21 16:34
The 40th known Mersenne prime, 220996011-1 is not PRIME! illman-q Miscellaneous Math 33 2004-09-19 05:02

All times are UTC. The time now is 16:31.

Sat May 8 16:31:00 UTC 2021 up 30 days, 11:11, 1 user, load averages: 3.11, 2.99, 3.16

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.