Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #480000634201463866098507671986857600456541966537081502199043384166162825944898410342464888436431677232893465794808733646522220208867979650020658090378479123174293639201816434282724741785738156488117739769310106814816334390595146211324545793014802253484550369254600003272879909905790941622207173721151418827470934074912600834751476879913995643495080883246764912768904959844637450#
  2. [S], #encode all of the bytes of this program (except the first line) into a single integer, and store it in S.
  3. #35# #push ordinal value of "#".
  4.  
  5. [L0] #determine the length of S in decimal digits. L will contain the final result.
  6. [TS] #put a copy of S in T, which we will destroy
  7. w[LL1+][T#10#T/],0Tg} #while T > 0: increment L, remove a digit from T
  8.  
  9. [C1L-] #push the character equivalent of each digit of S onto the stack. For C from L-1 to 0...
  10. {
  11. #10#C#10#eS/%#48#+[C1C-] #get the C'th least significant digit, add 48 to get its equivalent character, then push onto the stack.
  12. ,L}
  13. #35# #push ordinal value of "#"
  14.  
  15. [L0] #determine the number of bytes of S. L will contain the final result.
  16. [TS]
  17. w[LL1+][T8T>],0Tg} #while T > 0: increment L, right shift T by a byte
  18.  
  19. [C0] #extract the C'th least significant byte from S and push it to the stack. For C from 0 to L...
  20. {
  21. #256#C8*S>%[C1C+] #right-shift S by C bytes and push the smallest 8 bits.
  22. ,L}
  23.  
  24. c #print.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement