This story has the number of votes cast in the New Hampshire Democratic and Republican presidential primaries for all candidates who were on the ballots. Two of the candidates who were listed on the Republican ballot only received 3 votes in the entire state. The results are unofficial but include all precincts except one.
In the Democratic primary, 10% of the votes cast were write-in votes. It is probable that a majority of those were for Hillary Clinton. It is a little-known fact that in the November 2008 presidential election, Hillary Clinton received thousands of write-in votes. Virtually no state reported these, because it is normal nowadays that states only canvass write-in votes for declared write-in candidates. But there were a few jurisdictions that reported all write-ins, and the number for Hillary Clinton was substantial, comparatively speaking. There were also thousands of write-in votes in November 2008 for Ron Paul.