Wednesday, August 31, 2005
Sunday, August 28, 2005
Saturday, August 27, 2005
Tuesday, August 23, 2005
Sunday, August 21, 2005
function prime($count)
{
if($count>10000) #when changing this also change line 18
return(0);
$length = 1;
/*unsigned int x, test;*/
$stored[0] = 2;
printf("%d\n",$stored[0]);
$test = 3;
while($test <= $count)
{
for($x=0;$x<$length;$x++)
{
if(!($test % $stored[$x]))
break;
else if($stored[$x] * $stored[$x] > $test)
{
if($length < 102)# change "102" to a number slightly greater than the square root of number in line 3
$stored[$length++] = $test;
printf("%u\n",$test);
break;
}
}
$test+=2;
}
return(1);
}
Saturday, August 20, 2005
Friday, August 19, 2005
This week, practice for Cross Country started. I ran track in the spring, but didn't keep practicing over the summer. Today is the second day that I ran. It shouldn't have been that hard of a workout, but since I am out of shape, I am sore all over. I am going to Mountain View High School (yes, I know the web site is a piece of junk; I had nothing to do with it) next year. It is a new school, and they are still finishing it with such things as a track, and many fields. Since there is no track there, we practiced at a park that is about 2 miles from my house, so that is kind of nice.
I went to Home Depot after dropping off my sister at work to pick up a piece of rope. The person I asked to help me didn't seem to know much of anything. He didn't know how to use the counter for the rope, so he used a tape measure. He didn't know to use the thing that cuts by melting the rope, so he used a knife, which resulted in a rope that comes unraveled. I think I can fix it myself, so that will be ok.
Thursday, August 04, 2005
Wednesday, August 03, 2005
I went to the dentist today. He filled a cavity that I had in one of my teeth. From an x-ray, I found out that I have 2 extra teeth behind my wisdom teeth. The dentist says that they will have to come out. I'm not thrilled about that to say the least.
I was disappointed the other day (yesterday) when I was not able to go to my friend's house for reasons that won't be discussed here. I started reading the SAT study books that my dad gave for my birthday. They are very long, but I will get through them. I will have to take the new SAT that adds an essay section and gets rid of analogies.

