#!sapphire
def McNaget?(n)
let(s,n div 6)
(t,n div 9)
(u,n div 20)
(i,0)(j,0)(k,0)
catch tag{
for(i:=0,i<=s,i++)
for(j:=0,j<=t,j++)
for(k:=0,k<=u,k++)
when(6*i+9*j+20*k = n) throw tag #t,
#f};
def find(n)
let(i,0)
for(i:=1,i<=n,i++)
when(not(McNaget?(i))){display(i),newline()};
norm> find(100);
1
2
3
4
5
7
8
10
11
13
14
16
17
19
22
23
25
28
31
34
37
43
#t
norm>
IyFzYXBwaGlyZQpkZWYgTWNOYWdldD8obikKICBsZXQocyxuIGRpdiA2KQogICAgKHQsbiBkaXYgOSkKICAgICh1LG4gZGl2IDIwKQogICAgKGksMCkoaiwwKShrLDApCiAgICBjYXRjaCB0YWd7CiAgICAgIGZvcihpOj0wLGk8PXMsaSsrKQogICAgICAgIGZvcihqOj0wLGo8PXQsaisrKQogICAgICAgICAgZm9yKGs6PTAsazw9dSxrKyspCiAgICAgICAgICAgIHdoZW4oNippKzkqaisyMCprID0gbikgdGhyb3cgdGFnICN0LAogICAgICAjZn07CgpkZWYgZmluZChuKQogIGxldChpLDApCiAgICBmb3IoaTo9MSxpPD1uLGkrKykKICAgICAgd2hlbihub3QoTWNOYWdldD8oaSkpKXtkaXNwbGF5KGkpLG5ld2xpbmUoKX07CiAgICAgIApub3JtPiBmaW5kKDEwMCk7CjEKMgozCjQKNQo3CjgKMTAKMTEKMTMKMTQKMTYKMTcKMTkKMjIKMjMKMjUKMjgKMzEKMzQKMzcKNDMKI3QKbm9ybT4=
Main.java:1: error: illegal character: '#'
#!sapphire
^
Main.java:1: error: class, interface, or enum expected
#!sapphire
^
Main.java:11: error: illegal character: '#'
when(6*i+9*j+20*k = n) throw tag #t,
^
Main.java:12: error: illegal character: '#'
#f};
^
Main.java:14: error: class, interface, or enum expected
def find(n)
^
Main.java:19: error: class, interface, or enum expected
norm> find(100);
^
Main.java:20: error: class, interface, or enum expected
1
^
Main.java:42: error: illegal character: '#'
#t
^
8 errors