On June 7, Montana held contested primaries for the Republican, Democratic, and Libertarian Parties. Any voter was free to choose any party’s primary ballot. The Green Party is also on the ballot but had no contested primaries, so no Green Party primary ballots were printed up.
In the U.S. House race, 2nd (eastern) district, which was the only part of Montana with a contested Libertarian primary, there were 97,000 votes cast in the Republican primary, 37,596 votes cast in the Democratic primary, and 2,037 votes cast in the Libertarian primary. See the results here.
The last time there was a contested minor party primary in Montana was 2020, when the Green Party had a contest for U.S. Senate, in which 759 votes were cast. The winner of that primary did not appear on the general election ballot because the Montana Supreme Court removed the party from the ballot after its primary was over.