Create a PHP script to find all prime factors of a given number.
MediumProblem Statement
Create a PHP script to find all prime factors of a given number.
Sample Input
12
Sample Output
[2,2,3]
Limits
Time: 2s · Memory: 256 MB
Create a PHP script to find all prime factors of a given number.
12
[2,2,3]
Time: 2s · Memory: 256 MB