prime,arrays and replace