Problem number three is really stumping me... I have no idea how to solve it at all. Can anybody offer advice?
[url]http://projecteuler.net/index.php?section=problems&id=3[/url]
[QUOTE=andersonmat;22137577]Just keep a running total as you calculate the numbers.
[editline]11:24PM[/editline]
:raise: ?
[editline]11:28PM[/editline]
Then just terminate your loop when the number exceeds 4 million.[/QUOTE]
that doesn't help
this is why i can't be a software engineer
[QUOTE=Whitewater;22137684]Problem number three is really stumping me... I have no idea how to solve it at all. Can anybody offer advice?
[url]http://projecteuler.net/index.php?section=problems&id=3[/url][/QUOTE]
What I did is first generate a list of primes using Sieve of Eratosthenes, up to the square root of 600851475143 (the highest prime factor of a number will be less than its square root), then check that list backwards, checking whether each prime goes into the number evenly. The first one that does is your answer.
[editline]11:37PM[/editline]
[QUOTE=raccoon12;22137714]that doesn't help
this is why i can't be a software engineer[/QUOTE]
Which part are you having trouble with? Generating the list of Fibonacci numbers? Adding them up?
Raccoon-
If you are using C++ or a similar language, I can PM you what I used to solve it.
More generally, I calculated all of the fibonacci numbers up to 4 million, then looped through to get the result of the proper ones.
C++, and I mean.. it seems easy, but my brain just is like "lol idk" and i can't seem to figure it out
shill, generating the numbers
[QUOTE=raccoon12;22137872]C++, and I mean.. it seems easy, but my brain just is like "lol idk" and i can't seem to figure it out
shill, generating the numbers[/QUOTE]
Yeah, I know what you mean. Basically, if you have two numbers, a and b, just set b = a + b, and a = b. Keep doing this in a loop, and if b is even, do answer += b. (make sure to initialize answer to 0 first)
[editline]f[/editline]
I've now completed 1,2,3,4,7,9,10.
[editline]12:39AM[/editline]
I did Euler 5 with pen, paper and calculator instead of programming. Is that bad?
[editline]12:54AM[/editline]
ok I have no idea how to do Euler 8
[url]http://projecteuler.net/index.php?section=problems&id=8[/url]
Our hover-tank game, written entirely in lua using the game engine we are making (in C++ and OpenGL):
[img]http://filebox.me/files/ug1usm014_tanks3.png[/img]
[img]http://filebox.me/files/43suxcung_tanks1.png[/img]
[img]http://filebox.me/files/1fy72sru9_tanks2.png[/img]
So far its just a bunch of AI tanks following me (somewhat aggressively) using state machines. Yes the water is shit, it's due tonight and there are some ridiculous (and arbitrary) requirements so the water is literally just a plane. The hover tanks are all rigid bodies and they float around and shit, we have pretty much nailed the handling. And my friend modelled that kick ass-hover tank for me today. Although I think the turret's pivot is a bit off but I'll fix that in a minute. It's hard to tell just from the pictures but the reason some tanks are flipping is because they are chasing me quite fast and bashing into other tanks.
[QUOTE=Z_guy;22136320]Sweet! What does it use to communicate with the computer? WiFi? Bluetooth?[/QUOTE]
WiFi.
A while ago I made an animated Julia fractal using a pixel shader. It's old, but I still think it looks pretty cool.
[img]http://www.imgdumper.nl/uploads2/4bfa44e249ecf/4bfa44e247bae-julia_2010-05-24_11-14-08-58.gif[/img]
[QUOTE=Overv;22141114]A while ago I made an animated Julia fractal using a pixel shader. It's old, but I still think it looks pretty cool.
[img]http://www.imgdumper.nl/uploads2/4bfa44e249ecf/4bfa44e247bae-julia_2010-05-24_11-14-08-58.gif[/img][/QUOTE]
dude that's awesome make more of these
[QUOTE=shill le 2nd;22138266]ok I have no idea how to do Euler 8
[url]http://projecteuler.net/index.php?section=problems&id=8[/url][/QUOTE]
Maybe use arrays and work from there?
Visual Studio 2010 Pro for free!
[QUOTE=Chad Mobile;22131394]Jumping and shooting in my first person shooter finally. And bullet impacts. (And I changed the gun)
[img_thumb]http://i50.tinypic.com/15n281s.png[/img_thumb] (Yes, those is the ACTUAL muzzleflash.)
[img_thumb]http://i47.tinypic.com/11kbndy.png[/img_thumb](Jumping is a little too high..)[/QUOTE]
Why do I feel like this is made in Game Maker?
Should I download VS 2010 Ultimate, 2008 Pro or 2005 Pro?
[QUOTE=shill le 2nd;22138266]Yeah, I know what you mean. Basically, if you have two numbers, a and b, just set b = a + b, and a = b. Keep doing this in a loop, and if b is even, do answer += b. (make sure to initialize answer to 0 first)
[editline]f[/editline]
I've now completed 1,2,3,4,7,9,10.
[editline]12:39AM[/editline]
I did Euler 5 with pen, paper and calculator instead of programming. Is that bad?
[editline]12:54AM[/editline]
ok I have no idea how to do Euler 8
[url]http://projecteuler.net/index.php?section=problems&id=8[/url][/QUOTE]
It's really easy want me to send you some code as a example(pm) ?
[QUOTE=Robber;22142405]Progress:
[media]http://www.youtube.com/watch?v=otzOezLqTnI[/media][/QUOTE]
So really you're just remote connected?
[QUOTE=Wipmuck;22142599]So really you're just remote connected?[/QUOTE]
What do you mean? :confused:
[QUOTE=Dlaor;22142215]Why do I feel like this is made in Game Maker?[/QUOTE]
cause it is.
[QUOTE=nos217;22142306]Should I download VS 2010 Ultimate, 2008 Pro or 2005 Pro?[/QUOTE]
Anyone? Sorry, I need to download it within the next couple of hours if I can.
Go for 2010, or download them all.
Yeah, but is Ultimate as good, better or worse than professional?
[editline]03:07PM[/editline]
Whoa 2.2GB, 19 hours. I hate Plusnet.
[QUOTE=nos217;22143830]Yeah, but is Ultimate as good, better or worse than professional?[/QUOTE]
Ultimate includes Professional features, plus some. It's the same with Windows operating systems, you've got various low-end things such as education\student, home\family, then professional, enterprise and ultimate.
[editline]12:18AM[/editline]
Plus, I mean, it'd probably be best to go for the 2010 version regardless, as it'd have new features not in 2008 or 2005 distros. That having been said, the 2010 version [i]is[/i] ultimate edition so you'd end up having the best of all worlds. Nearly.
Alright thanks. I've got it all done now, it's downloading.
Made a simple program to test your reaction time
[IMG]http://img28.imageshack.us/img28/9134/reactiontimetest.jpg[/IMG]
There's a random interval that goes from 2500 to 5500 milliseconds, i used a timer for the interval and a Stopwatch to register the reaction time.
[QUOTE=nos217;22143482]Anyone? Sorry, I need to download it within the next couple of hours if I can.[/QUOTE]
Are you even going to use half the features that are in 2010?
[QUOTE=Robber;22142405]Progress:
[media]http://www.youtube.com/watch?v=otzOezLqTnI[/media][/QUOTE]
Amazing progress! At firs I thought you just had a white screen that you could draw on, but somehow you render the on-screen stuff as well!
Would you mind releasing this as an open source project sometime? I would [b]love[/b] to see how you did this!
[img]http://www.facepunch.com/fp/rating/heart.png[/img]
[QUOTE=nos217;22143830]Yeah, but is Ultimate as good, better or worse than professional?
[editline]03:07PM[/editline]
Whoa 2.2GB, 19 hours. I hate Plusnet.[/QUOTE]
"Ultimate", by definition, means there's nothing better.
[QUOTE=i300;22144969]Amazing progress! At firs I thought you just had a white screen that you could draw on, but somehow you render the on-screen stuff as well!
Would you mind releasing this as an open source project sometime? I would [b]love[/b] to see how you did this!
[img]http://www.facepunch.com/fp/rating/heart.png[/img][/QUOTE]
I think it might be a vnc client? :o
[QUOTE=i300;22144969]Amazing progress! At firs I thought you just had a white screen that you could draw on, but somehow you render the on-screen stuff as well!
Would you mind releasing this as an open source project sometime? I would [b]love[/b] to see how you did this!
[img]http://www.facepunch.com/fp/rating/heart.png[/img][/QUOTE]
It's just a quick&dirty implementation of an idea I've had for some time, but could never implement it because I lacked the skills to make anything with the Android SDK. Expect some ugly code. [url=http://dl.dropbox.com/u/1106779/Tablet.zip]Download[/url]
Basically I'm just capturing a part of the screen, sending it to the Android device via WLAN and display it there. The Android app sends the mouse coordinates and if the mouse button is clicked to the desktop application.
[QUOTE=Pirate Ninja;22145495]I think it might be a vnc client? :o[/QUOTE]
Nope. I made it from scratch. I only used the libraries included in the Android SDK and the JDK.
Sorry, you need to Log In to post a reply to this thread.