updated euler008.c