We don't use 'prompt' in that way. Actors are prompted if they forget their lines, but we don't use it for students who can't answer questions. A teacher would just say 'Don't give him/her the answer.' if it looked like another student was trying to help.