Prime Numbers
#1
Posted 02 May 2003 - 09:34 PM
Note that 31.257.313 is almost a prime number, but it factors into 5437 and 5749.
------------------
"I'm one of those things you'll save forever / but never need / like an old newspaper / no one has time to read
This child has grown into a dead end / since I lost the power to pretend
But it's all right, that's who I am inside
Not much to say, on this non-toxic, ordinary day" -SR-17, "Non-Toxic" (now you see inside)
#2
Posted 02 May 2003 - 11:32 PM
------------------
[INSERT ZEEKY BOGGY DOOG HERE]
[url="http://"http://albinoblacksheep.com/flash/demented.html"]- The Demented Cartoon Movie[/url]
Commander of the AAS and Supreme Ruler of ZAP.
"Bad Avatara."
-- from the topic closings of Sundered Angel, Official Lektorian and founder of SONAH.
#3
Posted 03 May 2003 - 12:00 AM
------------------
From the moment I picked your book up, until I laid it down, I was convulsed with laughter. Someday I intend on reading it.
#4
Posted 03 May 2003 - 12:27 PM
------------------
[INSERT ZEEKY BOGGY DOOG HERE]
[url="http://"http://albinoblacksheep.com/flash/demented.html"]- The Demented Cartoon Movie[/url]
Commander of the AAS and Supreme Ruler of ZAP.
"Bad Avatara."
-- from the topic closings of Sundered Angel, Official Lektorian and founder of SONAH.
#5
Posted 03 May 2003 - 12:46 PM
ewan
------------------
[url="http://"http://www.evula.org/ewan/"]Ewan's Lair[/url] | [url="http://"http://dreamwave.evula.net"]Dreamwave[/url] | [url="http://"http://www.northernswamp.com"]Northern Swamp[/url] | [url="http://"http://www.evula.com"]EVula's Lair[/url]
"In this world gone mad, we won't spank the monkey - the monkey will spank us!"
#6
Posted 03 May 2003 - 01:01 PM
------------------
dude3 -- a succession of trite homilies and unfortunate metaphors
Quote of the Week- "Let's spank his panties!" -Ryogo
[url="http://"http://www.ambrosiasw.com/webboard/Forum12/HTML/000347.html#"]Stupid Joke of the Day[/url] :: [url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum=Ares+Trash+Talk&number=12&DaysPrune=20&LastLogin="]Support Your Local Undead Webboard![/url]
Jacques Derrida, "Signature Event Context"
#7
Posted 03 May 2003 - 01:13 PM
------------------
[INSERT ZEEKY BOGGY DOOG HERE]
[url="http://"http://albinoblacksheep.com/flash/demented.html"]- The Demented Cartoon Movie[/url]
Commander of the AAS and Supreme Ruler of ZAP.
"Bad Avatara."
-- from the topic closings of Sundered Angel, Official Lektorian and founder of SONAH.
#8
Posted 03 May 2003 - 01:14 PM
------------------
"I'm one of those things you'll save forever / but never need / like an old newspaper / no one has time to read
This child has grown into a dead end / since I lost the power to pretend
But it's all right, that's who I am inside
Not much to say, on this non-toxic, ordinary day" -SR-17, "Non-Toxic" (now you see inside)
#9
Posted 03 May 2003 - 03:16 PM
[1] => 3
[2] => 5
[3] => 7
[4] => 11
[5] => 13
[6] => 17
[7] => 19
[8] => 23
[9] => 29
[10] => 31
[11] => 37
[12] => 41
[13] => 43
[14] => 47
[15] => 53
[16] => 59
[17] => 61
[18] => 67
[19] => 71
[20] => 73
[21] => 79
[22] => 83
[23] => 89
[24] => 97
[25] => 101
[26] => 103
[27] => 107
[28] => 109
[29] => 113
[30] => 127
[31] => 131
[32] => 137
[33] => 139
[34] => 149
[35] => 151
[36] => 157
[37] => 163
[38] => 167
[39] => 173
.........................
[960] => 7573
[961] => 7577
[962] => 7583
[963] => 7589
[964] => 7591
[965] => 7603
[966] => 7607
[967] => 7621
[968] => 7639
[969] => 7643
[970] => 7649
[971] => 7669
[972] => 7673
[973] => 7681
[974] => 7687
[975] => 7691
[976] => 7699
[977] => 7703
[978] => 7717
[979] => 7723
[980] => 7727
[981] => 7741
[982] => 7753
[983] => 7757
[984] => 7759
[985] => 7789
[986] => 7793
[987] => 7817
[988] => 7823
[989] => 7829
[990] => 7841
[991] => 7853
[992] => 7867
[993] => 7873
[994] => 7877
[995] => 7879
[996] => 7883
[997] => 7901
[998] => 7907
[999] => 7919
.........................
[99960] => 1299173
[99961] => 1299187
[99962] => 1299203
[99963] => 1299209
[99964] => 1299211
[99965] => 1299223
[99966] => 1299227
[99967] => 1299257
[99968] => 1299269
[99969] => 1299283
[99970] => 1299289
[99971] => 1299299
[99972] => 1299317
[99973] => 1299323
[99974] => 1299341
[99975] => 1299343
[99976] => 1299349
[99977] => 1299359
[99978] => 1299367
[99979] => 1299377
[99980] => 1299379
[99981] => 1299437
[99982] => 1299439
[99983] => 1299449
[99984] => 1299451
[99985] => 1299457
[99986] => 1299491
[99987] => 1299499
[99988] => 1299533
[99989] => 1299541
[99990] => 1299553
[99991] => 1299583
[99992] => 1299601
[99993] => 1299631
[99994] => 1299637
[99995] => 1299647
[99996] => 1299653
[99997] => 1299673
[99998] => 1299689
[99999] => 1299709
------------------
"I'm one of those things you'll save forever / but never need / like an old newspaper / no one has time to read
This child has grown into a dead end / since I lost the power to pretend
But it's all right, that's who I am inside
Not much to say, on this non-toxic, ordinary day" -SR-17, "Non-Toxic" (now you see inside)
[This message has been edited by Pallas Athene (edited 05-03-2003).]
#11
Posted 03 May 2003 - 05:11 PM
Quote
1 is debatable.
1 is most certainly not prime.
------------------
dude3 -- a succession of trite homilies and unfortunate metaphors
Quote of the Week- "Let's spank his panties!" -Ryogo
[url="http://"http://www.ambrosiasw.com/webboard/Forum12/HTML/000347.html#"]Stupid Joke of the Day[/url] :: [url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum=Ares+Trash+Talk&number=12&DaysPrune=20&LastLogin="]Support Your Local Undead Webboard![/url]
Jacques Derrida, "Signature Event Context"
#12
Posted 03 May 2003 - 05:51 PM
------------------
"It's a tough case...he still thinks he's an accountant"-Airplane 2: The Sequel
Links: [url="http://"http://ambrosiasw.com/games/pop-pop"]pop-pop[/url] [url="http://"http://ambrosiasw.com/webboard/forum12/HTML/000347.html"]Visit Stupid Joke of the Day![/url] [url="http://"http://svt.se/hogafflahage/hogafflaHage_site/Kor/hestekor.html"]Singing Horses/Hogafflahage[/url] That should do it.
#13
Posted 03 May 2003 - 11:34 PM
------------------
"What we do not know, we cannot begin to understand."
*Unless it's Avatara, of course."
-- From the memoirs of Sundered Angel
#14
Posted 03 May 2003 - 11:39 PM
------------------
dude3 -- just a set of intercorrolated coordinates
Quote of the Week- "And what the dickens is 'grimace musically'?" -Portnoy
[url="http://"http://www.ambrosiasw.com/webboard/Forum12/HTML/000347.html#"]Stupid Joke of the Day[/url] :: [url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum=Ares+Trash+Talk&number=12&DaysPrune=20&LastLogin="]Support Your Local Undead Webboard![/url]
Jacques Derrida, "Signature Event Context"
#15
Posted 04 May 2003 - 12:01 AM
But if pallas wants §31 and a quarter, I'm not sure I have a right to complain...
------------------
"What we do not know, we cannot begin to understand."
*Unless it's Avatara, of course."
-- From the memoirs of Sundered Angel
#16
Posted 04 May 2003 - 07:11 AM
Quote
This is an American board, last I checked.
...and I was American, last time I checked. Years of playing online games based out of Europe have gotten me used to writing the period instead of the comma. Although apparently Hyp uses the comma... more PAesque-type games seem to rely more on the period.
------------------
"I'm one of those things you'll save forever / but never need / like an old newspaper / no one has time to read
This child has grown into a dead end / since I lost the power to pretend
But it's all right, that's who I am inside
Not much to say, on this non-toxic, ordinary day" -SR-17, "Non-Toxic" (now you see inside)
#17
Posted 04 May 2003 - 08:14 AM
------------------
Sundered Angel,
The One and Only
Ares Webboard Moderator, and all-around Nice Guy
The One and Only
Ares Webboard Moderator, and all-around Nice Guy
#18
Posted 04 May 2003 - 12:21 PM
Periods and commas are both valid ways of expressing a decimal place in all jurisdictions.
I use both (commas in Ireland, Periods in Finland). Not only that, but it gets more interesting, in many places where commas are used for decimal places periods are used as incremental separators for thousands and vice versa.
------------------
Oh, so it is another bug hunt then...
#20
Posted 04 May 2003 - 10:59 PM
#include <stdio.h> int main() { int count, test, pc, i; long *prime; bool isp; scanf("%d", &count); if (count>0) { prime = new long[count]; test = 2; pc = 0; while (pc < count) { isp = true; for (i=0; i<pc && isp; i++) { if (test % prime[i] == 0) isp = false; } if (isp) { prime[pc] = test; printf("[%d] => %dn", pc, prime[pc]); pc++; } test++; } } return 0; }
------------------
"I'm one of those things you'll save forever / but never need / like an old newspaper / no one has time to read
This child has grown into a dead end / since I lost the power to pretend
But it's all right, that's who I am inside
Not much to say, on this non-toxic, ordinary day" -SR-17, "Non-Toxic" (now you see inside)
#21
Posted 05 May 2003 - 02:42 PM
------------------
[INSERT ZEEKY BOGGY DOOG HERE]
[url="http://"http://albinoblacksheep.com/flash/demented.html"]- The Demented Cartoon Movie[/url]
Commander of the AAS and Supreme Ruler of ZAP.
"Bad Avatara."
-- from the topic closings of Sundered Angel, Official Lektorian and founder of SONAH.
#22
Posted 05 May 2003 - 04:10 PM
------------------
"I'm one of those things you'll save forever / but never need / like an old newspaper / no one has time to read
This child has grown into a dead end / since I lost the power to pretend
But it's all right, that's who I am inside
Not much to say, on this non-toxic, ordinary day" -SR-17, "Non-Toxic" (now you see inside)
#23
Posted 05 May 2003 - 10:42 PM
#include <iostream.h> int main() { cout<<"This program returns 1 because it's cooler than Pallas' silly program that returns 0."; return 1; }
------------------
[INSERT ZEEKY BOGGY DOOG HERE]
[url="http://"http://albinoblacksheep.com/flash/demented.html"]- The Demented Cartoon Movie[/url]
Commander of the AAS and Supreme Ruler of ZAP.
"Bad Avatara."
-- from the topic closings of Sundered Angel, Official Lektorian and founder of SONAH.
#24
Posted 05 May 2003 - 11:09 PM
------------------
"What we do not know, we cannot begin to understand."
*Unless it's Avatara, of course."
-- From the memoirs of Sundered Angel
#25
Posted 06 May 2003 - 02:42 PM
How about this one?
#include <stdlib.h> #include <time.h> double main() { double *i; srand((unsigned)time(NULL)); i = rand(); return *i; }
------------------
"I'm one of those things you'll save forever / but never need / like an old newspaper / no one has time to read
This child has grown into a dead end / since I lost the power to pretend
But it's all right, that's who I am inside
Not much to say, on this non-toxic, ordinary day" -SR-17, "Non-Toxic" (now you see inside)