Yes, but presumably they'll work on another problem instead, because they're mathematicians who enjoy doing mathematics.
Is there value lost in them working on problems that don't have solutions instead of problems that do?