Skip to main content
Best answer by Werner_E

Simply run through your vector P and pick every value with a distance of more than 4 from both its neighbours. ANd what will you do with that list now???

BTW, the second nextPrime() routine in my last sheet here http://communities.ptc.com/message/237185#237185 was erraneous, simply delete it.

19.03.png

PS. Any reason for excuding 2 and 3 from your list of primes?

1 reply

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
March 19, 2014

Simply run through your vector P and pick every value with a distance of more than 4 from both its neighbours. ANd what will you do with that list now???

BTW, the second nextPrime() routine in my last sheet here http://communities.ptc.com/message/237185#237185 was erraneous, simply delete it.

19.03.png

PS. Any reason for excuding 2 and 3 from your list of primes?