golang practice with project euler

split a string by newlines and used range notation in a for loop