How do i make my project not pause during calculation?

so at the moment im trying to figure out the combination of gear that the character could wear and to figure out all the combinations of the equipment by nesting for loops inside each other so that it works through all the combinations, but while its doing this ue4 goes to not respoding. i know that nesting for loops isnt the best idea, but its the only way that ive found works on getting all combinations.
does anyone know a more efficient way of doing this?
works out at about 10 million combinations and takes about 2/3 mins

maybe there would be a way to spread the calculations