Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. A='abcdefghijklmnopqrstuvwxyz'
  2. def i_skaiciu(text):
  3. t=''
  4. for r in text:
  5. if r in A:
  6. ind=A.index(r)+1
  7. if ind<10: t=t+'0'+str(ind)
  8. else: t=t+str(ind)
  9. return int(t,10)
  10.  
  11. def i_teksta(M):
  12. n=M
  13. text=''
  14. while n>0:
  15. ind=n%100
  16. ind=ind-1
  17. if (ind>=0) & (ind<len(A)):
  18. text+=A[ind]
  19. n=(n-ind+1)//100
  20. else:
  21. text+='?'
  22. n=(n-ind+1)//100
  23. return text[::-1]
  24.  
  25. M=i_skaiciu('vienas')
  26. T1=i_teksta(power_mod(696694583882797655156995004155095940834409199314769,1971741675466598231173762517132398846963020217286525,2104903025234833471775486482272866481730934732974913))
  27. manoe = 131128777013
  28. manod = 1971741675466598231173762517132398846963020217286525
  29. manon = 2104903025234833471775486482272866481730934732974913
  30. algion = 2104903025234833471775486482272866481730934732974913
  31. algioe = 60180661145
  32. bigN = manoe * manod - 1
  33. dulaipsnis = 5
  34. newt = bigN//2^dulaipsnis
  35.  
  36. ao = power_mod(3,newt,manon)
  37. a1 = power_mod(ao,2,manon)
  38. newp=gcd(ao+1,manon)
  39. newq = manon//newp
  40. fi = (newp-1)*(newq-1)
  41. da = algioe ^ (-1) %fi
  42. T2 = i_teksta(power_mod(748828167974112530841739419803363780008514217329424,da,algion))
  43. print(T2)
  44.  
  45. newsystemp = next_prime(7^40)
  46. newsystemq = next_prime(17^33)
  47. newsystemn = newsystemp * newsystemq
  48.  
  49.  
  50. M,T1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement