PRIME: Pruning Optimization for Input-aware Dynamic Memristive Spiking Neural Network