Project Euler #133: Repunit nonfactors

Sort by

recency

|

5 Discussions

|

  • + 1 comment

    what should be the value of n.. please find my login below and let me know what improvemnet can I make:

    sum=0 for i in range(1,l+1): if checkPrime(i): //for checking prime number total=0 for j in range(1,6): digits=10**j repunit = (int('1'*digits))

            if repunit%i==0:
                total=total+1
        if total==0:
    
            sum=sum+i
    

    print(sum)

  • + 1 comment

    what should be the maximum value of n??

  • + 1 comment

    Please explain me the logic about this problem.

  • + 0 comments

    please explain me the logic about this problem

  • + 0 comments

    can any one please help me out regarding logic.

No more comments