{ "info": { "author": "FasterCoding", "author_email": "fastercodingtutorial@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Fermats Little Theorem\n\nThis repository contains an example\nof the Fermats Little Theorem algorithm\nfor C++ and one for Python3.\n\n## C++\n\nTo run the example for C++\nchange into the `c++` folder\nand run the following bash script in Linux.\n\n```bash\nmkdir build && \\\ncd build && \\\ncmake .. -G \"Unix Makefiles\" && \\\nmake\n```\n\nThe program should be build and \nyou can see an executable called `modinverse`.\n\nYou can test it with `./modinverse arg1 arg2`.\n\nFor example:\n\n```bash\n./modinverse 3 5\nmodular inverse of 3 mod 5 is 2\n```\n\n```bash\n./modinverse 2 4\nThere is no modular inverse!\n```\n\n```bash\n./modinverse 2 \nNot enough input arguments!\n```\n\n## Python3\n\nYou can run this example from source or \ninstall it with pip and include it in your project.\n\n### Source\n\n**Requirement**\n- virtualenv\n\nTo run this example from source,\nrun the following bash script in Linux.\n\n```bash\npython3 -m virtualenv . && \\\nsource ./bin/activate && \\\npip3 install -r requirements.txt\n```\n\nThis will generate a virual environment and\ninstall the requirement.\n\nAfter that you can run the programm with\n\n`python3 Fermat/fermat.py arg1 arg2`\n\nFor example:\n\n```bash\npython3 Fermat/fermat.py 2 5\nThe mod inverse of 2 mod 5 is 3\n```\n\n```bash\npython3 Fermat/fermat.py 2 4\nThere is no modular inverse!\n```\n\n```bash\npython3 Fermat/fermat.py 2 \nNot enough input arguments!\n```\n\n### Pip\n\nTo install this example with pip, simply run:\n\n`pip3 install Fermat-FasterCoding`\n\nThen you can use it as import like this:\n\n```python\nimport Fermat.fermat as fermat\n\ninverse = fermat.modInverse(3, 5) # This will return 2\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FasterCoding/Fermats-Little-Theorem", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "Fermat-FasterCoding", "package_url": "https://pypi.org/project/Fermat-FasterCoding/", "platform": "", "project_url": "https://pypi.org/project/Fermat-FasterCoding/", "project_urls": { "Homepage": "https://github.com/FasterCoding/Fermats-Little-Theorem" }, "release_url": "https://pypi.org/project/Fermat-FasterCoding/1.0.1/", "requires_dist": [ "Euclid-FasterCoding" ], "requires_python": "", "summary": "Example code for the Fermats-Little-Theorem modular inverse algorithm", "version": "1.0.1" }, "last_serial": 5546131, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f11590d1e6593e32d3c90fb46f219d73", "sha256": "a807e9da6a956daae14ca955d33f1940bb6e6fde462b6ea941dcf641d9803f12" }, "downloads": -1, "filename": "Fermat_FasterCoding-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f11590d1e6593e32d3c90fb46f219d73", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2814, "upload_time": "2019-07-17T13:39:31", "url": "https://files.pythonhosted.org/packages/0f/25/ef1fa3a4178aad7e67ff760a15a0e2d42524facf4e744723ac8dad9f63a3/Fermat_FasterCoding-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "09b5d286b74dff4369db877d22faecaa", "sha256": "21856ef297c6c39a1ef5844fde2cf886daa22bb50cb9c1c4aed4b6f68f09f134" }, "downloads": -1, "filename": "Fermat@FasterCoding-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09b5d286b74dff4369db877d22faecaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1521, "upload_time": "2019-07-17T13:39:34", "url": "https://files.pythonhosted.org/packages/0f/2a/822440f76a01bd209f5a75ca108e6d83192acd54cdb6742f33f69c9c747a/Fermat@FasterCoding-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6100a5c7217fdeb7db85d3b0bae655b8", "sha256": "ce08df88310cbb4877338e60137310646963dcf459e1758caaa5ee7bfc5d9d13" }, "downloads": -1, "filename": "Fermat_FasterCoding-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6100a5c7217fdeb7db85d3b0bae655b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2679, "upload_time": "2019-07-17T14:17:33", "url": "https://files.pythonhosted.org/packages/0e/11/700e23c08201fe4ec29bffee007212ba1455ce23dea694679dbfcf564749/Fermat_FasterCoding-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6110029036db80774d9b290daf08b261", "sha256": "c988af85d6c9c6bfc2bd9574f6e3484296e3244e43ebf5e9ba69e468f9232226" }, "downloads": -1, "filename": "Fermat@FasterCoding-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6110029036db80774d9b290daf08b261", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2129, "upload_time": "2019-07-17T14:17:35", "url": "https://files.pythonhosted.org/packages/59/c1/fb4bf66c47328bf43c1de6c3dda11958cc45faa2d967894adfdb29a1b31d/Fermat@FasterCoding-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6100a5c7217fdeb7db85d3b0bae655b8", "sha256": "ce08df88310cbb4877338e60137310646963dcf459e1758caaa5ee7bfc5d9d13" }, "downloads": -1, "filename": "Fermat_FasterCoding-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6100a5c7217fdeb7db85d3b0bae655b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2679, "upload_time": "2019-07-17T14:17:33", "url": "https://files.pythonhosted.org/packages/0e/11/700e23c08201fe4ec29bffee007212ba1455ce23dea694679dbfcf564749/Fermat_FasterCoding-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6110029036db80774d9b290daf08b261", "sha256": "c988af85d6c9c6bfc2bd9574f6e3484296e3244e43ebf5e9ba69e468f9232226" }, "downloads": -1, "filename": "Fermat@FasterCoding-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6110029036db80774d9b290daf08b261", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2129, "upload_time": "2019-07-17T14:17:35", "url": "https://files.pythonhosted.org/packages/59/c1/fb4bf66c47328bf43c1de6c3dda11958cc45faa2d967894adfdb29a1b31d/Fermat@FasterCoding-1.0.1.tar.gz" } ] }