Challenge:

The concept is simple enough: write a full program to output its own code golf score!

Output should only be the byte count of your program and a trailing  bytes.

BUT WAIT..... there is one restriction:

• Your source code can not include any of the digits from your byte count
• So if your score is 186 bytes, your program can not contain the characters 1 , 6 , or 8

Example Output:

315 bytes
27 Bytes
49 BYTES


• Unnecessary characters, spaces, and newlines are forbidden in the source code, however trailing spaces and newlines are perfectly acceptable in output
• There should be a single space between the number and bytes in the output
• Letters are case insensitive
• No self inspection or reading the source code
• standard loopholes are disallowed

• this is , so

Shortest code in bytes wins!

• Does this need the quine tag, or may the code self-inspect? – Adám Mar 29 '18 at 15:59
• @Dat, given the formatting of the word bytes I suspect the intention is that the count should include the bytes it takes to print the text: bytes – Jeff Schaller Mar 29 '18 at 16:16
• Are leading spaces in output acceptable? – rafa11111 Mar 29 '18 at 17:43
• If my code is 1 byte long, should I output 1 bytes or 1 byte? (keep in mind there are already 41 answers, although I don't think any are affected) – Erik the Outgolfer Mar 29 '18 at 18:07
• @JoKing well I didn’t address casing in the rules, but if somehow using capital letters makes your score lower, then by all means I’d love to see what you came up with. I say go for it! – X1M4L Mar 29 '18 at 22:50

MathGolf, 9 bytes

G½ "bytes


Try it online!

Explanation

Quite simple really

G            Push 18
½           Halve the result, giving 9
Push a space character
"bytes    Push "bytes"


C#, 6865 64 bytes

class P{static void Main(){System.Console.Write(8*8+" bytes");}}


Try it online!

• Welcome to PPCG! Your program contains the digits 5 and 6 which you are printing, that's not allowed. – Ørjan Johansen Sep 28 '18 at 9:17
• Fixed the program and thanks for the review @ØrjanJohansen – SiD Sep 28 '18 at 9:50

Python 2, 17 bytes

print 9+8,'bytes'


Output: 17 bytes

33, 14 bytes

Technically non-competing, as I made the language after this challenge was posted.

2c7xo" bytes"p


Pretty simple. Multiplies 2 and 7.

Runic Enchantments, 10 bytes

 āXESa@


Try it online!

Huh, I thumbed this one up and never answered it.

ā encodes the value 257 (still shorter than any other method) which gets multiplied by 10 and converted to a word via a dictionary. 2570 happens to be bytes. a encodes 10 (b-f encode 11 through 15) and gets around the "no digits" restriction. And conveniently enough, the rest of the program is 9 bytes.

Doesn't end up being shorter than " bytes"a@ (also 10 bytes), but oh well.

Wd, 7 bytes

♣êæ█☺₧K


Explanation

Unpacked:

7 bytes"


RProgN 2, 10 bytes

°' Bytes'.


Explination

°           # Push 10 to the stack
' Bytes'   # Push the literal string " Bytes" to the stack
.  # Concatenate. Implicit print.


Try it online!

Jelly, 7 bytes

“¢>¶ŒD»


Try it online!

Compressed strings.

SOGL V0.12, 8 bytes

┌m39Σ³‘


Try it Here!

Pari/GP, 18 bytes

print(2*9" bytes")


Try it online!

MATL, 12 bytes

6EV' bytes'h


Try it online!

Pushes 6, doubles with E, converts that to a string with V, and horzcats it with the string ' bytes' to get the proper spacing. Implicit output takes care of the rest.

SmileBASIC, 12 bytes

?3*4;" bytes


(Probably works in a bunch of other BASIC dialects, too)

Alternatives:

?&HC;" bytes
?9+3;" bytes


jamal, 14 characters

{@* 2 7} bytes


Sample run:

bash-4.4$perl jamal.pl ownsize.jam 14 bytes  Fortran (GFortran), 24 bytes PRINT*,11+13,'BYTES' END  Try it online! Outputs "24 BYTES" with some leading spaces, because, you know, it's Fortran... you can't tell him to do something and expect that he will do exactly as you said, specially if it involves strings :) PowerShell, 14 bytes "$(2*7) bytes"


Try it online!

Ho-hum. Uses an inline code block $(...) to put 14 into the string before leaving it on the pipeline. Output is implicit. TeX, 16 bytes ^^q^^v bytes\bye  Ruby, 15 bytes p"#{0xf} bytes"  Try it online! Foo, 13 bytes &9+4$i" bytes


Try it online!

Explanation

&9+4$i" bytes &9 push 9 +4 add 4 (13)$i          output as integer
" bytes   print out " bytes"


14 bytes

@20&\$h" bytes"


Same general idea, but (ab)uses hexadecimal printing.

Pyth, 11 bytes

+hT" bytes"


Try it online!

• Why do you have h? Doesn't that just add the eleventh byte that it's there to account for, and it can thus be removed safely? – Steven H. Apr 10 '18 at 22:21

Python 2, 18 17 bytes

print 8+9,'bytes'


-1 byte thanks to @Wondercricket.

Try it online.

• That trailing space is not in the output, I think it's still precisely what the rule is intended to forbid. However, you can use parentheses around 2*9 instead. – Ørjan Johansen Mar 30 '18 at 0:48
• @ØrjanJohansen I changed it to 8+9 instead to save a byte. :) – Kevin Cruijssen Mar 30 '18 at 6:58

Rust, 34 bytes

fn main(){print!("{} bytes",17*2)}


Try it online!

C# (Visual C# Interactive Compiler), 20 bytes

Write(11+9+" bytes")


Try it online!

Excel, 13 bytes

=6+7&" bytes"


Output: 13 bytes

Nothing fancy. It's different from the other Excel answers as those are both based in VBA. This formula version is longer.

T-SQL, 32 bytes

print char(51)+char(50)+' bytes'


Best I could come up with.

Javascript,26 bytes

console.log(78/3+" bytes")


Try it online!

C, 50 49 bytes

#include<stdio.h>
main(){printf("%d bytes",'1');}


Octave, 42 bytes

I figured I'd try a more interesting approach that's Octave-specific (and only works on some platforms).

printf('%i bytes',printf('%c',8+~(10:51)))


Note: This doesn't work on TIO or Octave-online.net, but it does work on Octave 4.2.0 on my laptop.

Explanation:

printf('%i bytes',... ) specifies that we will print a string starting with an integer %i followed by the characters ' bytes'. The second part of the first printf-function call is another call to printf('%c',...). When printf is called with an output argument, it returns the number of characters in the output string, as well as the string. The second part of the second printf call is 8+~(10:51). This is a shorter way to write [8, 8, 8 ...] 42 times. 8 is the ASCII-value of the backspace. The string to be printed is therefore 42 backspaces. This doesn't show when typing it in the terminal, so we'll get 42 bytes without a trailing newline:

MySQL, 28 bytes

SELECT CONCAT(7*4,' bytes');


Tcl, 23 bytes

puts [scan  %c]\ bytes


Try it online!

Tcl, 23 bytes

puts [expr 19+4]\ bytes


Try it online!

ArnoldC, 216 Bytes

Try it online!

IT'S SHOWTIME
HEY CHRISTMAS TREE i
YOU SET US UP 4
GET TO THE CHOPPER i
HERE IS MY INVITATION i
YOU'RE FIRED 54
ENOUGH TALK
TALK TO THE HAND i
TALK TO THE HAND "BYTES"
YOU HAVE BEEN TERMINATED


Output

216
BYTES
`

Well, i took too long with my php answer, i had to try this.

As far as i read, i can't write without a line break or concatenate an integer with a string :(