Nicholas Prosper, 19, planned to kill at least 30 of the youngest pupils at his primary school and two of their teachers, court told