AlpacaHack Logo

Challenges

Sign InSign Up

Type

Display

Difficulty

Rows:

DIFF.CHALLENGEAUTHORS

SOLVES

Loading challenges...

Rows:

Flag is A+B

Daily AlpacaHackTopic: MathematicsReleased: Jul 2, 2026

95 solves
Crypto
Easy🌱2.5

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