Post Reply 
(49G) OEIS A178225: Test for Binary-Palindromicity
02-26-2018, 05:56 PM
Post: #6
RE: (49G) OEIS A178225: Test for Binary-Palindromicity
Shorter:

Size: 92.5

CkSum: # 1249h

Code:
::
  CK1&Dispatch
  # FF
  ::
    FPTR2 ^DupQIsZero?
    casedrop
    %1
    FPTR2 ^Z>ZH
    FPTR2 ^ZBits
    DUPUNROT
    #2/
    DUP
    ZERO_DO
    DROP
    SWAP#1-SWAP
    OVER
    FPTR2 ^ZBit?
    SWAPINDEX@
    FPTR2 ^ZBit?
    ROT
    EQUAL
    DUP
    ?SKIP
    ExitAtLOOP
    LOOP
    ROTROT2DROP
    COERCEFLAG
  ;
;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (49G) OEIS A178225: Test for Binary-Palindromicity - Gerald H - 02-26-2018 05:56 PM



User(s) browsing this thread: 1 Guest(s)