![]() |
![]() |
#1 |
Apr 2007
416 Posts |
![]()
Is there any site or program i can test if one array is prime number?You have to know that the array is very long number and the algoithm should be fast...Thank you in advance
![]() |
![]() |
![]() |
![]() |
#2 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
What do you mean by "array?" Do you have an array of many large numbers to test, or maybe an array of "unsigned int" that form one large number? How large exactly is the number? Do you want a test that tells primality with extremely low, but non-zero probability of error, or does it have to be a mathematical proof?
Alex |
![]() |
![]() |
![]() |
#3 |
Apr 2007
22 Posts |
![]()
I mean string and "char" type.The lenght of the string is about 10 miliion symbols.Is there any software,code or algorithm to check if it is prime?
![]() |
![]() |
![]() |
![]() |
#4 |
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
426710 Posts |
![]()
10 million symbols that are how many different things per symbol? This makes a huge difference. There could be two things per symbol, in which case your number is 2^10000000, or, for all we know, it could be 10 million different per symbol, making it 10000000^10000000. Please clarify by saying how many digits it is and what form of number it is (or the number itself if you don't mind saying it), so we can figure out what factoring/primality test would be the most efficient.
|
![]() |
![]() |
![]() |
#5 |
∂2ω=0
Sep 2002
República de California
2D6016 Posts |
![]()
If by "symbol" he means anything encoding a single bit or more, no, there is no known algorithm to test 10M-symbol numbers not having any special algebraic form for rigorous primality.
A probably-prime test might be within reach, if the symbols are decimal digits or smaller. |
![]() |
![]() |
![]() |
#6 | |
Jun 2005
USA, IL
193 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Apr 2007
22 Posts |
![]()
The string contains about 10 million digits.I thought it isn't so difficult to understand.I read in this forum that i can test if the number is prime with prime95 program but first i should register myself in GIMPS project.Is it right?:surprised
|
![]() |
![]() |
![]() |
#8 | |
Apr 2007
22 Posts |
![]() Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#9 | |
Banned
"Luigi"
Aug 2002
Team Italia
113038 Posts |
![]() Quote:
If your number is not built on this form, you have no chance to test it. Also please note that if you use GIMPS to test your number, and the number is prime, you must share the EFF prize as explained here. Luigi Last fiddled with by ET_ on 2007-04-07 at 10:38 |
|
![]() |
![]() |
![]() |
#10 | |
Sep 2002
Database er0rr
2×7×257 Posts |
![]() Quote:
Last fiddled with by paulunderwood on 2007-04-07 at 11:06 |
|
![]() |
![]() |
![]() |
#11 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
The question of whether you need a *proof* of primality, or merely a primality test with very small chance of error, is unanswered.
If you need the former, getting a positive result is out of the question, unless your number is of a very specific form. If the latter will do, PFGW sounds like a good way to go. Alex |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does mprime check prime.txt/local.txt for changes? | odin | Software | 4 | 2010-04-16 05:59 |
Check the prime | Vandor | Information & Answers | 3 | 2008-11-27 15:25 |
prime check myself | Vandor | Software | 1 | 2008-10-10 05:52 |
easiest way to check if you found prime | Mini-Geek | No Prime Left Behind | 33 | 2008-03-07 23:43 |
How to check if a number is a Mersenne prime ? | Unregistered | Software | 6 | 2004-06-19 08:18 |