semiprime123.m

Factors of a semiprime number

You are now following this Submission

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 (2026). semiprime123.m (https://ch.mathworks.com/matlabcentral/fileexchange/47673-semiprime123-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0