in reply to Re^9: Avoid keeping larger lists in Memory
in thread Avoid keeping larger lists in Memory

Thanks pryt. I fixed the problem with for loop by dividing it with only prime factors in the previous thread . Also the execution time has improved upon calculating the square root every time after changing the value of num in the for loop.

  • Comment on Re^10: Avoid keeping larger lists in Memory