Story highlights Democratic presidential hopeful Bernie Sanders appeared on NBC's "Tonight Show" on Tuesday

He criticized Donald Trump's proposed ban on all Muslims entering the United States

(CNN) Bernie Sanders condemned Donald Trump's call for a ban on Muslims entering the United States, calling the Republican front-runner a "demagogue" and saying "that kind of crap won't work in the United States of America."

Appearing on NBC's "The Tonight Show" on Tuesday, the Vermont independent who's seeking the Democratic presidential nomination accused Trump of trying to "divert attention away from the real issues."

"What somebody like a Trump is trying to do is to divide us up -- a few months ago, we're supposed to hate Mexicans," Sanders said. "Now we're supposed to hate Muslims. That kind of crap is not going to work in the United States of America."

Asked by host Jimmy Fallon whether he was more focused on Trump or primary opponent Hillary Clinton, Sanders replied, "I look forward to beating Donald Trump -- I would enjoy that race very, very much."

Read More