image thumbnail

semiprime123.m

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

384 Downloads

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 (https://www.mathworks.com/matlabcentral/fileexchange/47673-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!