Code point sum quine

Retina, 1 byte, sum = 58 (ASCII)

:

This counts the matches of : in the input (0), so it prints

0

The code points of :, 0, and LF (linefeed) are 58, 48, and 10 (respectively), and 58 = 48 + 10.

Try it online!


ArnoldC, 316 bytes, sum 20992 (ASCII)

Fun enough.

IT'S SHOWTIME
HEY CHRISTMAS TREE s
YOU SET US UP 1
HEY CHRISTMAS TREE iaV
YOU SET US UP 0
STICK AROUND s
GET TO THE CHOPPER iaV
HERE IS MY INVITATION iaV
GET UP 8
ENOUGH TALK
TALK TO THE HAND "H"
GET TO THE CHOPPER s
HERE IS MY INVITATION 2048
LET OFF SOME STEAM BENNET iaV
ENOUGH TALK
CHILL
YOU HAVE BEEN TERMINATED

I used this and this to do my calculations. Took me an hour and a half. But fun.

Try It Online!

How it works

STICK AROUND is a loop, that loops 2048 times on the index iaV, but this index steps by 8. So there is 256 loops, printing H and a linefeed (72+10 = 82, 82*256 = 20992).

This is still HIGHLY golfable (by finding other calcs) but it is long and boring to measure your byte sum every time you do a modification.

Please tell me if I'm mistaken anywhere.


Charcoal, 1 byte, sum = 180 (Charcoal SBCS)

Try it online! In Charcoal's code page, has a code of 0xB4 = 180, while the output is 4 -s which is 4 * 45 = 180.