-
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;…
-
Nice little “rural” Fern Creek run.
Crossed paths of cyclists on Seatonville Rd five times this morning. Most of them were pleasant, one of them was a bit anti-social. I’ve decided that my favorite drivers are in the 60+ age group and drive 10+ year old pickup trucks in very good condition. Generally, these drivers pass carefully with a decent amount…