The You Game!
Forum rules
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
Re: The You Game!
< just made a program on Maple that calculates the number of prime numbers between 1 and 1000000000. < wonders how long it'll take ahahah. (< has already done that between 1 and 1000000, and if < recalls correctly, 7% of those numbers are prime numbers, that's quite a lot)
-
spiraldoor

- Posts: 12392
- Joined: Tue Jul 15, 2008 3:13 pm
- Tings: 156600
Re: The You Game!
<’s favourite prime number is 5
-
MLII

- Posts: 8064
- Joined: Sat Jan 03, 2009 10:48 pm
- Location: therapist to the royal bees
- Tings: 43075
Re: The You Game!
< says 5 is an awesome number
< says he was a bit of a gay stitchpunk though
< says he was a bit of a gay stitchpunk though
Re: The You Game!
< prefer the number 4
< re-saw star wars
< re-saw star wars
Re: The You Game!
< is looking forward to tomorrow~
Re: The You Game!
< coded that up too.DesLife wrote:< just made a program on Maple that calculates the number of prime numbers between 1 and 1000000000.
< wonders how long it'll take to execute.
Re: The You Game!
On what software ? It's been over an hour now. < expects it to take days, since it's an old version of Maple. Remember <'s Euler stuff program ? 
Re: The You Game!
MS Visual Studio 2008 (C++)DesLife wrote:On what software ?
From 1 to 1 million took 0.59secs on <'s computer
From 1 to 1 billion will take ages though.
Re: The You Game!
... 0.59S ??! It took 18.3s on <'s computer...
Re: The You Game!
Hmmm that's strange. What's your processor and what algorithm are you using?
Re: The You Game!
m:=0: for i from 1 to 1000000 do if isprime(i)=true then m:=m+1: fi: od: m;
Proc : Intel(R) Core(TM)2 Duo CPU T6500, 2.10GHz
< absolutely doesn't know anything about processors ahahah.
Oh, and <'s using Maple 5.1, which is old. Maple 7, which we use at school, is much faster.
Proc : Intel(R) Core(TM)2 Duo CPU T6500, 2.10GHz
< absolutely doesn't know anything about processors ahahah.
Oh, and <'s using Maple 5.1, which is old. Maple 7, which we use at school, is much faster.
Re: The You Game!
That's a laptop processor right?
Mine's Intel Core i5 750 @ 2.67GHz, but I doubt it's 30 times faster than yours... must be Maple (then again I doubt their isprime() function is less efficient than the one I wrote)
< doesn't know shit about processors or hardware in general too actually lel
Mine's Intel Core i5 750 @ 2.67GHz, but I doubt it's 30 times faster than yours... must be Maple (then again I doubt their isprime() function is less efficient than the one I wrote)
< doesn't know shit about processors or hardware in general too actually lel
Re: The You Game!
Yup, right. What's your function ?
Re: The You Game!
It was for some ProjectEuler problem originally.
Code: Select all
bool is_prime(int n)
{
int start = 5;
if (n==1) return false;
if (n<4) return true;
if (n%2==0) return false;
if (n<9) return true;
if (n%3==0) return false;
while (start <= sqrt((double)n))
{
if (n%start==0) return false;
if (n%(start+2)==0) return false;
start += 6;
}
return true;
}-
MLII

- Posts: 8064
- Joined: Sat Jan 03, 2009 10:48 pm
- Location: therapist to the royal bees
- Tings: 43075
Re: The You Game!
DesLife wrote: Maple 7, which we use at school, is much faster.
School? :0
< wonders how old Des is
-
Serza5

- Posts: 48387
- Joined: Sat Jul 26, 2008 7:51 pm
- Location: MOTHER FUCKING SCOTLAND OH YEAH BABY
- Contact:
- Tings: 490135
Re: The You Game!
< knows Dessy is 25 and a maths teacher 
-
Julia_Patti

- Posts: 1142
- Joined: Mon Mar 22, 2010 3:58 am
- Location: Russia
- Contact:
- Tings: 15
Re: The You Game!
<draws a sig for Candish (which won't be in Ambush thread, because it was discussed before and therefore not a surprise).
Re: The You Game!
< has to study for the programming exam which I want to retake tomorrow but it's so boring...
-
Julia_Patti

- Posts: 1142
- Joined: Mon Mar 22, 2010 3:58 am
- Location: Russia
- Contact:
- Tings: 15
Re: The You Game!
<...already waits for Candy's reaction
<has finally learned how to animate fully in GIMP. Phew!..
<has finally learned how to animate fully in GIMP. Phew!..
Re: The You Game!
< wanted to retake an exam today but < overslept 


