10 lines python code to solve Factorization Problems - Fermat Theorem code Cryptography example Factorization fast learn Fermat Theorem learn program python RSA snippet solution solve understand +