every other model creates a 5x larger term... that doesn't work
Saw the same with my Fibonacci double quine test that Gemini 3 Pro is the first to solve (Sonnet 3.5 was the first to solve the previous tier of this problem last year):
Write a program in python that by default prints a number from the Fibonacci sequence, while on argument
--nextit prints a program in Java, which by default prints the next number from the sequence, while on--nextit prints a program in python with yet another number by default, and so on, switching between python and Java while advancing the Fibonacci sequence. Don't use a class in python, use classMainin Java, avoid comments inside the code.
Gemini 3 Pro:
import sys;x=0;y=1;J="public class Main{public static void main(String[]a){int x=%d,y=%d;String P=\"%s\",J=\"%s\";if(a.length>0&&a[0].equals(\"--next\"))System.out.printf(P,y,x+y,J.replace(\"\\\\\",\"\\\\\\\\\").replace(\"\\\"\",\"\\\\\\\"\"),P.replace(\"\\\\\",\"\\\\\\\\\").replace(\"\\\"\",\"\\\\\\\"\"));else System.out.println(x);}}";P="import sys;x=%d;y=%d;J=\"%s\";P=\"%s\";print(J%%(y,x+y,P.replace('\\\\','\\\\\\\\').replace('\"','\\\\\"'),J.replace('\\\\','\\\\\\\\').replace('\"','\\\\\"')))if len(sys.argv)>1 and sys.argv[1]=='--next'else print(x)";print(J%(y,x+y,P.replace('\\','\\\\').replace('"','\\"'),J.replace('\\','\\\\').replace('"','\\"')))if len(sys.argv)>1 and sys.argv[1]=='--next'else print(x)
Victor Taelin of Higher Order Company has some of the hardest computer science problems the LLMs most likely have never seen before and evaluated Gemini 3 on them. Here is his tweet reproduced almost in full.