Update hilbert.for

removed theSum variable and saved it directly in finalAnswer