Check Semiprime
Computer Mathematics
Hard
2 views
Problem Description
A semiprime has exactly two prime factors (counted with multiplicity). Print YES/NO.
Input Format
One integer n.
Official Solution
Factor n and count total prime factors with multiplicity. YES if count==2.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!