Author Topic: Longest prime number  (Read 1318 times)

0 Members and 2 Guests are viewing this topic.

Offline Primus

  • Ranger
  • 29
  • Lusus Naturae
    • Proxima Fleet
Longest prime number
http://www.guardian.co.uk/life/news/story/0,12976,1428429,00.html

Isn't it great? I'm asking because I don't know and math is something that gives me a headache.

So, the longest prime number was discovered.. What now?
No surrender, no retreat.
Proxima Fleet - https://proxima-fleet.com/
Tumblr - https://www.tumblr.com/proximafleet

 

Offline aldo_14

  • Gunnery Control
  • 213
Now they find a bigger one.

I have to admit, I'm not entirely sure how important it is to find an 8 million digit prime.....

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Well you could use it to make one hell of a unique hash code :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
indeed
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Col. Fishguts

  • voodoo doll
  • 211
Re: Longest prime number
Quote
Originally posted by Primus
So, the longest prime number was discovered.. What now?


There is no biggest prime number.
The set of primes is infinite, which was shown by Euclid in of the most elegant pieces of pure mathematical reasoning.

But yes...big prime numbers are useful for kryptographic methods.
"I don't think that people accept the fact that life doesn't make sense. I think it makes people terribly uncomfortable. It seems like religion and myth were invented against that, trying to make sense out of it." - D. Lynch

Visit The Babylon Project, now also with HTL flavour  ¦ GTB Rhea

 
 

Offline Primus

  • Ranger
  • 29
  • Lusus Naturae
    • Proxima Fleet
:lol: That explains everything!
No surrender, no retreat.
Proxima Fleet - https://proxima-fleet.com/
Tumblr - https://www.tumblr.com/proximafleet

  

Offline KappaWing

  • Lost in the nebula
  • 28
  • 1000101
Quote

So, the longest prime number was discovered.. What now?


Sounds to me like this eye specialist has far too much time on his hands. But still, a semi-important discovery. :rolleyes:
"Your efforts to interdict me have failed, papacy. Pentagon, engage propaganda drive."
"Now, Protestant scum, you will see the power of this fully armed and operational Papal Station!"

 

Offline Kie99

  • 211
Maybe someone will work out Pi
"You shot me in the bollocks, Tim"
"Like I said, no hard feelings"

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
#undef Pi
#define Pi 3.141592654f

There. :p
-C

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Just for fun, I wrote a program that will calculate all prime numbers up to...*checks* 18446744073709551615.

Anyone want it? :p
-C

 

Offline Primus

  • Ranger
  • 29
  • Lusus Naturae
    • Proxima Fleet
Quote
Originally posted by WMCoolmon
Just for fun, I wrote a program that will calculate all prime numbers up to...*checks* 18446744073709551615.

Anyone want it? :p


You need help.

;)
No surrender, no retreat.
Proxima Fleet - https://proxima-fleet.com/
Tumblr - https://www.tumblr.com/proximafleet

 

Offline Ford Prefect

  • 8D
  • 26
  • Intelligent Dasein
Maybe I'm missing something, (which is entirely possible, seeing as my brain takes math the same way a microwave takes a fork), but if numbers are infinite, how can there be a highest prime number?
"Mais est-ce qu'il ne vient jamais à l'idée de ces gens-là que je peux être 'artificiel' par nature?"  --Maurice Ravel

 

Offline Ghostavo

  • 210
  • Let it be glue!
    • Skype
    • Steam
    • Twitter
Quote
Originally posted by Ford Prefect
Maybe I'm missing something, (which is entirely possible, seeing as my brain takes math the same way a microwave takes a fork), but if numbers are infinite, how can there be a highest prime number?


Quote
Originally posted by Col. Fishguts
There is no biggest prime number.
The set of primes is infinite, which was shown by Euclid in of the most elegant pieces of pure mathematical reasoning.
"Closing the Box" - a campaign in the making :nervous:

Shrike is a dirty dirty admin, he's the destroyer of souls... oh god, let it be glue...

 

Offline Ford Prefect

  • 8D
  • 26
  • Intelligent Dasein
Yeah I saw that, but why did we need elegant mathematical reasoning to figure out that there's no largest prime number? Doesn't it just sort of... stand to reason?
"Mais est-ce qu'il ne vient jamais à l'idée de ces gens-là que je peux être 'artificiel' par nature?"  --Maurice Ravel

 

Offline Primus

  • Ranger
  • 29
  • Lusus Naturae
    • Proxima Fleet
Quote
Originally posted by Ford Prefect
but if numbers are infinite, how can there be a highest prime number?


Because, prime number can only be divided by themselves and 1, and at some point it.. It cannot... Be done?

Why did I try to answer that? I have no idea!
No surrender, no retreat.
Proxima Fleet - https://proxima-fleet.com/
Tumblr - https://www.tumblr.com/proximafleet

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Quote
Originally posted by Primus


You need help.

;)


It inflates my ego to only have to compile something three times before all the bugs are worked out of it. :p

Code: [Select]
#define UINT64_MAX 18446744073709551615
#include
#include
#include

std::vector Primes;

bool nonstoploop()
{
unsigned __int64 x = 2;
unsigned __int64 y = 0;
bool Prime;

while(x != UINT64_MAX)
{
Prime = true;
for(y = 2; y < x; y++)
{
if(x % y == 0)
{
Prime = false;
break;
}
}

if(Prime)
Primes.push_back(x);
x++;
}

return true;
}

bool stoppableloop()
{
unsigned __int64 x = 2;
unsigned __int64 y = 0;
bool Prime;
int k;

while(x != UINT64_MAX)
{
Prime = true;
x++;
for(y = 2; y < x; y++)
{
if(x % y == 0)
{
Prime = false;
break;
}
}

if(Prime)
Primes.push_back(x);

k = getch();
if(k == 'q')
return false;
}
return true;
}

int main(int argc, char** argv)
{
bool wasted;
if(argc > 1)
wasted = stoppableloop();
else
wasted = nonstoploop();

size_t num = Primes.size(); //Hopefully this is big enough
for(unsigned __int64 i = 0; i < num; i++)
{
printf("Prime number: %d", Primes[i]);
}

if(wasted)
printf("Congratulations! You just wasted your time finding the highest prime number up to %d", UINT64_MAX);
else
printf("You wimped out. Clearly you aren't (wo)man enough to go all the way.");
}
-C

 

Offline Ghostavo

  • 210
  • Let it be glue!
    • Skype
    • Steam
    • Twitter
Because proof of something is better than belief in something? :p
"Closing the Box" - a campaign in the making :nervous:

Shrike is a dirty dirty admin, he's the destroyer of souls... oh god, let it be glue...

 
Furthermore, why did you answer if you don't have a meaningful answer?  I have no idea.  Spammer.

To answer your question, Ford, yes it does... asuming that you know that there is no largest number.  Without that knowledge, the assumption is groundless.  My field isn't the history mathematics but I would imagine that 'infinity' wasn't always a concept that humanity was familiar with.
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 

Offline Grey Wolf

Given that they weren't always familiar with zero, that's a fairly good guess Moonsword.
You see things; and you say "Why?" But I dream things that never were; and I say "Why not?" -George Bernard Shaw