Seeking knowledge in itself is a form
Of worship. My advice is to focus, be dedicated in what you do and Inshallah the blessings will come from God.
As for prayer, try to be in the state of wudhu so when it is prayer time you can pray quickly. If it is at the masjid that’s good, otherwise try to pray in an empty classroom or some corner in the school.