44.3k views
1 vote
In python how do you write for prime factors

User Soundz
by
5.9k points

1 Answer

2 votes

Answer:

The while loop is used and the factors of the integer are computed by using the modulus operator and checking if the remainder of the number divided by i is 0. 3. Then the factors of the integer are then again checked if the factor is prime or not.

Step-by-step explanation:

google

User Ben Trengrove
by
5.8k points