fixed prime sum bug