We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
HINT : Pandigital primes are painful to find. Just generate them all at first.
Use permutations of strings ("123" gives "123" "132" "213" ...) ==> Look they are all pandigitals !
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #41: Pandigital prime
You are viewing a single comment's thread. Return to all comments →
HINT : Pandigital primes are painful to find. Just generate them all at first. Use permutations of strings ("123" gives "123" "132" "213" ...) ==> Look they are all pandigitals !