primes.filter((value, index) => value[index] + g === value[index + 1]);
Greetings.. I have an array primes with some prime numbers w
primes