Skip to content Skip to sidebar Skip to footer

How Do I Subtract 11 From A List And Mod 121 The Same List All At Once?

This is for prime number theory. This theory which actually shows up as an axiom factors numbers like 2^n-1 where n=11 or n=23 or n=29. Of course it would not factor n=7 or n=31

Solution 1:

Here's a solution:


lst1 = [20, '231', 21, '243', 22, '247', 23, '253', 24, '259']
print([(int(item)-11)%121 for item in lst1])


Post a Comment for "How Do I Subtract 11 From A List And Mod 121 The Same List All At Once?"