Javascript – I want to filter throw an elements to get the number attribute to return prime numbers of those elements
I have a list from an xml document which contain badges and failedaccesses elements which have attributes. I want to get all the prime numbered badge elements. How can I do this? I have tried using a function to retrieve…