Does an android phone unroot itself on factory reset? If you root your android device, and then factory restore it... does it remain rooted?
Yes. you need to Root after Factory Reset

also, and if you want to unroot then remove busybox, remove files in /system/xbin folder, and in SuperSU application in Options, Choose Uninstall