You are supposed to get all bytes from the beginning and end, convert these bytes into Int64s and sum up along with the file size. Instead, you are adding only the first Int64 from beginning and end of the file.
Also, you are reading first 64k+1 bytes instead of 64k bytes