prime,arrays and replace

prime,arrays and replace