Tests + ulam2.py : faster method