I think I broke my phone after factory reset... [rooted]

A

AC Question

I rooted my Samsung galaxy core prime g-360v using king root and didn't make any backup using titanium or anything since I didn't have enough phone space. Now I was trying to clear up system memory that took 4.5gb of storage for whatever reason. So I messed around a bit and managed to accidentally factory reset my phone.

Now I am apperently stuck in a loop where setup wizard stopped responding after 2slides. It stopped working right after i rooted it. But I dismissed it as no big deal since I wasn't going to factory reset my phone... Until I managed to do so accidentally. How do I fix this. (Note I can get into Odin mode and every that doesn't require me to actually setting up my phone.)

Is there a way I could possibly kill 2 birds with 1 stone since before rooting I didn't want to factory reset cause I didn't want to lose anything. But now the situation I am in, is there a way I can get passed this loop and or possibly reduce the size of the system memory.