Month: July 2008

  • Hotter than advertised.

    My last check on the weather prior to heading outside today in the office park said that it was 86’F outside. I didn’t really pay close attention to the heat index. Big mistake. Heat index ~ 100’F. 5.69 miles in 48:20. 8’30” average. First mile first okay, second mile was a little warm, but the…

  • Day 1, Week 3: Hundred Pushup Program

    First day of week 3 of the hundred pushup program: Set tally, “-“=60-second recovery period. “[#]”=max Abdominal muscles still sore from yesterday’s 16 mile run. That’s pretty atypical. Did the week 2 end-of-week test earlier in the day. Had to reset after 10 pushups because of my daughter trying to jump on my back to…

  • Optimized prime number generator

    Same specs as previous system, 8 hours to find all primes to ULONG_MAX. #include <stdio.h>#include <malloc.h>#include <limits.h>#include <math.h>struct linked_list{ unsigned long number; struct linked_list *next;};int main(int argc, char **argv){ unsigned long divisor, max_divisor, prime_test; unsigned long max_prime_to_store; struct linked_list *first=NULL, *current=NULL, *last=NULL; first=(struct linked_list *)malloc(sizeof(struct linked_list)); first->number = 2L; first->next = NULL; last = first;…