image thumbnail


version (1.48 KB) by Aniruddha Phatak
Factors of a semiprime number


Updated 28 Aug 2014

View License

The function calculates the two prime factors of a semi prime number. If the two numbers are close to each other, Fermat's Theorem is used. The function could be useful in cryptography, especially RSA.

Cite As

Aniruddha Phatak (2021). semiprime123.m (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!