The You Game!

For everything not related to either Rayman or Pirate-Community.
Forum rules
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The You Game!

Post by DesLife »

< 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
Umber
Posts: 12392
Joined: Tue Jul 15, 2008 3:13 pm
Tings: 156600

Re: The You Game!

Post by spiraldoor »

<’s favourite prime number is 5
MLII
Carmen
Posts: 8064
Joined: Sat Jan 03, 2009 10:48 pm
Location: therapist to the royal bees
Tings: 43075

Re: The You Game!

Post by MLII »

< says 5 is an awesome number

< says he was a bit of a gay stitchpunk though
Danone
Antitoon
Posts: 17089
Joined: Sun Jun 06, 2010 11:50 am
Tings: 0

Re: The You Game!

Post by Danone »

< prefer the number 4 :P
< re-saw star wars
Puruun
Antitoon
Posts: 2917
Joined: Sun Mar 01, 2009 5:36 pm
Location: Not here :(
Tings: 0

Re: The You Game!

Post by Puruun »

< is looking forward to tomorrow~
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The You Game!

Post by Matyuv »

DesLife wrote:< just made a program on Maple that calculates the number of prime numbers between 1 and 1000000000.
< coded that up too.
< wonders how long it'll take to execute.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The You Game!

Post by DesLife »

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 ? :mrgreen:
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The You Game!

Post by Matyuv »

DesLife wrote:On what software ?
MS Visual Studio 2008 (C++)

From 1 to 1 million took 0.59secs on <'s computer
From 1 to 1 billion will take ages though.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The You Game!

Post by DesLife »

... 0.59S ??! It took 18.3s on <'s computer...
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The You Game!

Post by Matyuv »

Hmmm that's strange. What's your processor and what algorithm are you using?
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The You Game!

Post by DesLife »

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.
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The You Game!

Post by Matyuv »

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
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The You Game!

Post by DesLife »

Yup, right. What's your function ?
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The You Game!

Post by Matyuv »

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
Carmen
Posts: 8064
Joined: Sat Jan 03, 2009 10:48 pm
Location: therapist to the royal bees
Tings: 43075

Re: The You Game!

Post by MLII »

DesLife wrote: Maple 7, which we use at school, is much faster.

School? :0

< wonders how old Des is
Serza5
Mr Dark
Posts: 48387
Joined: Sat Jul 26, 2008 7:51 pm
Location: MOTHER FUCKING SCOTLAND OH YEAH BABY
Contact:
Tings: 490135

Re: The You Game!

Post by Serza5 »

< knows Dessy is 25 and a maths teacher :)
Julia_Patti
Electoon
Posts: 1142
Joined: Mon Mar 22, 2010 3:58 am
Location: Russia
Contact:
Tings: 15

Re: The You Game!

Post by Julia_Patti »

<draws a sig for Candish (which won't be in Ambush thread, because it was discussed before and therefore not a surprise).
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The You Game!

Post by Matyuv »

< has to study for the programming exam which I want to retake tomorrow but it's so boring...
Julia_Patti
Electoon
Posts: 1142
Joined: Mon Mar 22, 2010 3:58 am
Location: Russia
Contact:
Tings: 15

Re: The You Game!

Post by Julia_Patti »

<...already waits for Candy's reaction :D
<has finally learned how to animate fully in GIMP. Phew!..
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The You Game!

Post by Matyuv »

< wanted to retake an exam today but < overslept :roll:
Post Reply