AlpacaHack Logo

Tag: Mathematics

Sign InSign Up
Mathematics

No description is available for this tag.

·Updated Jun 17, 2026
Mathematics Challenges

Flag is A+B

Daily AlpacaHackTopic: MathematicsReleased: Jul 2, 2026

154 solves
Crypto

by

hiikunz

hiikunz

You only need to calculate A+B to get the flag! Wait, what were A and B...?

Beginner Hint 1
  • Your goal is to recover the value of FLAG from the values written in output.txt.
  • The bytes_to_long function is provided by the pycryptodome package.
  • The same package also provides the inverse function, long_to_bytes. Once you have recovered FLAG as an integer, you can use this function to convert it back into the original string.
Beginner Hint 2
  • A well-known identity relating addition and bitwise operations is A + B = (A xor B) + 2 * (A and B). A good starting point is to understand why this identity holds.
flag-is-a-plus-b.tar.gz

Please sign in to submit the flag.

descriptionsolveswriteups