add slow version of ugly numbers