rework of euler21, still not getting right answer