Dead
0
mibuchiha
Fakku Elder
So basically it doesnt really check whether a number is a prime or not. What the program does is simply check if there are two or more factors of a certain number in the given range. ~_~
0
mibuchiha
Fakku Elder
No it's not. Suppose if there is a number m = np, n and p are prime. If both n and p are outside the specified range, the program would incorrectly tell that m is prime when it's not.
0
mibuchiha
Fakku Elder
So basically it checks for all integers from 1 to that number? Let's see...
1 -> 1%1
2 -> 2%1, 2%2
4 -> 4%1, 4%2, 4%3, 4%4
Not the most efficient way to do it I think.
1 -> 1%1
2 -> 2%1, 2%2
4 -> 4%1, 4%2, 4%3, 4%4
Not the most efficient way to do it I think.
0
mibuchiha
Fakku Elder
have you tried for ridiculous numbers like avogadro's? that's a standard to gauge execution speed. :P
0
Neoro~n wrote...
*tackle glomps Kyshi with cat fur all over my clothes*WINTER COUNTER GLOMP TACTIC NUMBER 1 -rolls backwards, shoving my foot into Neo's chest and hurls him way up in the air, rolling backward completely to end back up on my feet-
1
Neoro~n
å‹äººA
WEEEEEEEEEEEEEEEEEEEEE I'M FLYING!!!!! *does backlfips in the air and --*
Spoiler:
0
Neoro~n wrote...
Stop laughing and help me x_xNo problem, I'll just have someone take you to the hospital ^_^ -picks Neo up and--
Spoiler:
0
Neoro~n
å‹äººA
*rubs off dirt and walks inside the hospital* That hurts Kyshi ¯3¯ That hurts OTL
0
Neoro~n wrote...
*rubs off dirt and walks inside the hospital* That hurts Kyshi ¯3¯ That hurts OTLOh be quiet, now you get the hot nurse, don't complain....see?
Spoiler:
@Mills: -pokes- =P
0
Gahald_Mills wrote...
Kyuubi no Shinigami wrote...
@Mills: -pokes- =P*missed and gropes and runs away*.. XD
Don't touch my penis e_e
0
Neoro~n
å‹äººA
Kyuubi no Shinigami wrote...
Oh be quiet, now you get the hot nurse, don't complain....see?Spoiler:
Kyshi.... I OWE YOU ONE (^o^)-b!!!
Mills: *pokes*
0
Kyuubi no Shinigami wrote...
Gahald_Mills wrote...
Kyuubi no Shinigami wrote...
@Mills: -pokes- =P*missed and gropes and runs away*.. XD
Don't touch my penis e_e
I know that you..wait..what?..*rub my hands with sand paper*...gyaaaarrgghhh!!!... DX
@ Nyon : *bite the finger*
