I realize this will make several people very sad, but you can't really make your wishes wrap around zero and get 255 or something. There's indeed a bit of a tangled logic loop in those wishes, which is pretty fun! But this is why genies have some manner of control over the way in which wishes are granted. It'd be easy to twist this series of wishes in some manner, even for the neophyte genie. Me personally, I'd just let the engineer in this situation observe this infinite loop from within an illusion, and then go back to my bottle. They can enjoy thinking they've 'won' by breaking me, and I get some rest.
Teff?
Teff doesn't play by the rules. She keeps up the appearance of following the rules, because it's easier to lure in rubes that she can manipulate and exploit. Usually she'll try to grant a wish as close as possible to the stated phrasing, just to convince whoever thinks they're holding her bottle that they've got a sweet deal. Then she'll weave some twists into the next wish. And then they'll never see the third.
In this case, though? Teff doesn't have the patience. She'd narrow her eyes, make a dismissive noise, and say something akin to "Well aren't YOU clever?"
Then she'd bottle them without flourish.
Or much worse.
If Teff's not having fun, no one's having fun.



