Prime factor of 300 000 000 000?

前端 未结 19 756
无人及你
无人及你 2021-01-03 10:23

I need to find out the prime factors of over 300 billion. I have a function that is adding to the list of them...very slowly! It has been running for about an hour now and i

19条回答
  •  甜味超标
    2021-01-03 11:04

    It shouldn't take that long, even with a relatively naive brute force. For that specific number, I can factor it in my head in about one second.

    You say you don't want solutions(?), but here's your "subtle" hint. The only prime factors of the number are the lowest three primes.

提交回复
热议问题