Print 2014 without using any numbers in your source code

How about:

x=#"Poot"print(x*x+x,x/x,x)

[quote] x = #"ha" print(x..x-x..x/x..x*x) [/quote]

Beat you by one character:

x=#"haha"print(x*x+x..x/x..x)

Some alternatives:

[code]
print(os.date(‘*t’).year)

print(tonumber(‘BBC’,(‘HappyNewYear!’):find(‘!’)))
[/code][/quote]

When I get home, I’m going to spend a while trying to best you. I freaking love this challenge.

Found another solution of equal size.

x=#"##"print(x..x-x..x^x^x-x)

[quote] Found another solution of equal size.

x=#"##"print(x..x-x..x^x^x-x) [/quote]

You sir are a tough one to beat. I’m still trying.

Nothing record-breaking, but

a=math
b=#"abcdEFGH"
print(a.ceil(a.exp(a.pi)*(b..(b-#"a"))))

a=math
print(a.deg(#"a"..#"a".."."..#"aa")*a.pi-#"ab")

a=math
b=#"a"print(a.deg(b..b.."."..b+b)*a.pi-b-b)

a=#"abcd"a=a*a
print(tonumber('bbc',a-#"abc"))

it was so close

x=('').byte print(x'&'*x';'-x'ä')

I’ll leave you with this just so you know I’m still thinking.

x=#"a" print((x+x)^(x..x)-('"'):byte())

also short:

print(tonumber('1jy',math.pi^math.pi))

I’m sad you can’t use the ! operation in Lua.

Edit:
Cool, 11,111th post.

I actually found it by writing a script that generates solutions. Couldn’t find a smaller solution with it, though.

[quote] also short:

print(tonumber('1jy',math.pi^math.pi))

Ha! I came up with that exact solution, too. You can reduce it by 2 bytes by putting math.pi in a variable. Shame about the 1, though.
If you can find a concise way to get the number 13, then you can improve my tonumber solution.

I came up this too, but it also has a digit:

print(('&'):byte()*('5'):byte())

x=('').byte print(x'&'*x'5') is the shortest version of that

I tried brute forcing a short line of code containing any of the math functions, and this is the best I have:

l=#"i"i=math
print(i.deg(i.frexp(i.pi))^(l+l)-(l…l))

I’m spending way too much time on this. It’s been like 3 hours so far at half will-power.

does this count?

print(('&'):byte()*#game:children())

[quote] it was so close

x=('').byte print(x'&'*x';'-x'ä')

Are control characters allowed? I know that Lua will interpret any character correctly as long as it’s in a string. If so, then you could do something similar to this in only 28 bytes.

x=('').byte print(x'ΓÉô'*x'j')

Where the ΓÉô is the actual control character with a numerical value of 19.

[quote] does this count?

print(('&'):byte()*#game:children())

I don’t think so. That would only work on Roblox Lua.

[quote] x=('').byte print(x'ΓÉô'*x'j') [/quote]that prints 4028 though.

I get 2014. Have you replaced it properly? You can test the result by using “\19” in place of the unicode character. Or the actual control character, if you can type it somehow. Example:

x=('').byte print(x'\19'*x'j')

Edit:
I’ve attached a file that contains the actual control character. Lua interprets it correctly, so this seems like a legit solution.

Or have I…