Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Try it online. Test suite.
This is a translation of Dennis' CJam answer. I'm making it a community wiki, since I didn't come up with it.
cz\# split input at #
s cast to integer
.>z rotate input right