Thursday, March 31, 2005
Tuesday, March 29, 2005
I finished and turned in my snake program.
I have been working on a prime number calculator. The first incarnation of it checked if it was divisible any number between itself and 1. That was very inefficient.
The next version of it had an array of calculated numbers. The number being checked was checked againsta all numbers in this array. This was reasonably faster.
I later thought of a way to exponentially increase the speed at which it processed the numbers by only checking numbers that were smaller than its square root. At this speed, it does the same amount of numbers in a fraction of the time.
I ran this program on my mom's brand new computer for about 15 hours. When I looked at the output after this time, I saw negative numbers. I realized that I had forgotten to declare the variables as unsigned. I fixed this problem and now have a program that will calculate all of the 32-bit prime numbers.
...Sort of unrelated, but I am on spring break this week. That is why I can stay up so late.
Tuesday, March 22, 2005
Sunday, March 20, 2005
Thursday, March 17, 2005
Sunday, March 13, 2005
Get a free iPod (and help me get mine also)!
I have information that they really do send out the iPods. I saw a clip from a Screensavers television show where they actually talk to the owner of the company. You can find the clip at TheScreenSavers.com. I would appreciate anyone who signed up through this link. You have to participate in one of the offers and refer five friends.
