+ 5
KPrimes challenge !
A k-prime is a number having k prime factors ex 2 3 5 7 11 are 1-primes 4 6 9 are 2 primes 8 12 18 are 3 primes Program a function telling if n is a k prime or not
4 Respostas
+ 3
Here It goes, I think It is too slow and simple compared to your crazy algorithms but It works =D
https://code.sololearn.com/cpriajD2HyRN/?ref=app
+ 2
you won it. oneliner alternative here
https://code.sololearn.com/c43v1uUIguLo/?ref=app
0
Good !
0
Holy shit, forgot to add n += 2 to the generator, thats why It didnt work for some numbers lol, now It works perfectly