In reply to your second question ("Is this sentence ungrammatical?"):
Well, it depends on what you mean by "ungrammatical." I think some English textbooks use the term "ungrammatical" to describe any structure that isn't normally used in English, doesn't sound good, or is confusing to native speakers. The structure may not technically be grammatically *wrong*, but it sounds strange, and a native speaker would not use it. I think "every boy doesn't receive a prize" is an example of a sentence that isn't exactly "ungrammatical," but it also doesn't make sense. You want to give specific information about how many boys receive a prize, but no one can tell what you mean.
I think the only time it would sound natural to use this structure is if you were repeating what someone else said (for example, in order to correct them). However, you would need to explain your meaning. For example, I can imagine a conversation like this:
Joe: "I like this game, because every boy receives a prize."
Mary: "That's not true, every boy *doesn't* receive a prize. In fact, only half of the boys receive prizes."
or:
Joe: "I like this game, because every boy receives a prize."
Mary: "That's not true, every boy *doesn't* receive a prize. In fact, none of the boys receive a prize!"
Mary is just repeating what Joe said, but adding a negation ("doesn't") in order to correct him. She then explains what she means. If she simply said, "In this game, every boy doesn't receive a prize," no one would be able to guess what she meant.