Which dictionary did you find it in? As far as I know, "unstupid" is not a word in standard English. Nevertheless, people may sometimes invent it, possibly humorously, possibly for some other special contextual reason.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.