[Challenge] Programming Contest #2

Posts 16–30 of 34 · Page 2 of 3
This is not for my age ^^ 2 hard for me xDD
Quote Originally Posted by master131 View Post
Finished my entry in VB.NET, completes in 218ms. Oh and nice solution HD, seems very complicated since it doesn't use any string functions.
Your answer was incorrect Go fix et. Also, I said "Optional kicker, no string manip", it IS optional, but cooler .

@freedompeace, thanks for the solution, you never actually output the number of primes though haha

OH YEAH CLARIFICATION, THE COUNT IS THE NUMBER OF CIRCULAR PRIMES, INCLUDING EVERY NUMBER IN THE CIRCLE.
Quote Originally Posted by Jason View Post


Your answer was incorrect Go fix et. Also, I said "Optional kicker, no string manip", it IS optional, but cooler .

@freedompeace, thanks for the solution, you never actually output the number of primes though haha

OH YEAH CLARIFICATION, THE COUNT IS THE NUMBER OF CIRCULAR PRIMES, INCLUDING EVERY NUMBER IN THE CIRCLE.
So NOW you tell us :L

And you never said that we had to output 4k numbers somewhere ... =P


Incorrect? shit lol ill check over it :L
Quote Originally Posted by freedompeace View Post


So NOW you tell us :L

And you never said that we had to output 4k numbers somewhere ... =P


Incorrect? shit lol ill check over it :L
Master's was incorrect, not yours , that's why I quoted him and then said it, then directed a specific line at you.

To anyone that has any confusion, please refer to Euler

Problem 35 - Project Euler

I probably should have made it to 1000000 like theirs, didn't really thing about the combinations that ended over 500k (as freedom gave in his example). This was my bad guys.
Quote Originally Posted by Jason View Post


Master's was incorrect, not yours , that's why I quoted him and then said it, then directed a specific line at you.

To anyone that has any confusion, please refer to Euler

Problem 35 - Project Euler

I probably should have made it to 1000000 like theirs, didn't really thing about the combinations that ended over 500k (as freedom gave in his example). This was my bad guys.
So now mine is right and the others' is wrong? yay xD
So we need to include every number in the circle.

For instance:
If we had 1193 we would need to include 1931, 9311, and 3119 in our list?

Also should we provide our own timers in the code. or will timing be done by a separate program?
Quote Originally Posted by why06 View Post
So we need to include every number in the circle.

For instance:
If we had 1193 we would need to include 1931, 9311, and 3119 in our list?

Also should we provide our own timers in the code. or will timing be done by a separate program?
Well, duh :L

I think he meant if you had 182019 (which is less than 500k), and it was circular with 910881, we would have to include that as well, even though it shouldn't be (it is less than 500k).
Im in algebra 2 and never heard of this /fp Again
Time for another fail ettemp on learn on wikipedia again
mine is running at 578 ms, trying to work on a diff solution, but if nothing, oh well.

got it down to 432, App Counts how many primes there are, Then How many are circular primes, the lists the primes.


Quote Originally Posted by NextGen1 View Post
mine is running at 578 ms, trying to work on a diff solution, but if nothing, oh well.

got it down to 432, App Counts how many primes there are, Then How many are circular primes, the lists the primes.


Mine runs in 2 MS ?
Quote Originally Posted by Hassan View Post


Mine runs in 2 MS ?
Hassan we all know 7 days to write < 50 lines of code is out of the question for you. 2 weeks...maybe but unlikely.
Y'all noobs don't stand a chance against my godlike code ;P I WIN AGAIN =D
25 ms =D /brag & /ridicule

That and VB is sloooooow ;D

edit: forgot to say I also wrote a solution on my calculator during maths class, it completes it in 18 seconds xD
Quote Originally Posted by Jason View Post


Hassan we all know 7 days to write < 50 lines of code is out of the question for you. 2 weeks...maybe but unlikely.
I am lazy, doesn't mean I can't do it. I will submit mine when I am in mood ;D
Quote Originally Posted by Hassan View Post


I am lazy, doesn't mean I can't do it. I will submit mine when I am in mood ;D
Yeah my point was you only have 7 days, takes you over a month to 'get in the mood' to code.
I agree, My logic is perfect, the issue is currently VB + Single core , Processor both play a huge part , I'm trying a few scripts (python and ruby) to see if I can get this a little faster.
Posts 16–30 of 34 · Page 2 of 3

Post a Reply

Tags for this Thread

None

Talk with us