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.
In reply to Re^10: Avoid keeping larger lists in Memory
by pr33
in thread Avoid keeping larger lists in Memory
by pr33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |