add 1586 dp with prime number (simple)