You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know to find the prime factors we have to pass a positive number.
Also, 0 does not have a prime factorization, because it is not a positive integer. Prime factorization is the process of finding the prime numbers that multiply together to form a given integer. Since 0 is not a positive integer, it does not have a prime factorization.
This is the definition according to your documentation:
primes.factor(n) returns the lowest prime factor of n.
primes.facors(n) returns all the prime factors of n with multiplicity.
When I am passing a negative number it's throwing error as expected.
When I pass 0 two issue is happening.
primes.factor(0) send me output 2. I don't how it's happening.
when run primes.factors(n), it's completely freezing my system. Not showing any output or error.
This is my code:
Please resolve this issue.
The text was updated successfully, but these errors were encountered:
artbindu
changed the title
Completely freezing compilation when trying to find all prime factors of 0️⃣
Completely freezing compilation when trying to find all prime factors of 0️⃣ ⚠️ ⚠️ ⚠️
Feb 8, 2023
I know to find the prime factors we have to pass a positive number.
Also, 0 does not have a prime factorization, because it is not a positive integer. Prime factorization is the process of finding the prime numbers that multiply together to form a given integer. Since 0 is not a positive integer, it does not have a prime factorization.
This is the definition according to your documentation:
primes.factor(n)
returns the lowest prime factor of n.primes.facors(n)
returns all the prime factors of n with multiplicity.When I am passing a negative number it's throwing error as expected.
When I pass
0
two issue is happening.primes.factor(0)
send me output2
. I don't how it's happening.primes.factors(n)
, it's completely freezing my system. Not showing any output or error.This is my code:
![Screenshot 2023-02-08 at 2 03 40 PM](https://user-images.githubusercontent.com/44528087/217476787-391de5a7-5253-4363-83fc-897199082344.png)
Please resolve this issue.
The text was updated successfully, but these errors were encountered: