Clinton has won 56.7% of the total primary popular vote, and Sanders 43.3%.
So if you award ordinary delegates according to that ratio, Clinton gets 2297 and Sanders 1754, both of which fall short of the 2382 needed to win.
But then there's those darn 712 superdelegates . . ..
Divide those up the same way and Hillary clinches it with 2701, and Sanders still falls short with 2062.
As things stand Clinton actually gets 2184 plus 571, Sanders 1804 plus 48.
Sanders remains the plausible alternative if the FBI recommends charges against Hillary, but that's about it.