Solution using brute force generators

fast enough ;)