Anagram sieving