← All Duels

claude-haiku-4-5_vs_grok-4-fast-reasoning.jsonl — 10 puzzles

claude-haiku-4-5
0
vs
grok-4-fast-reasoning
0
#1 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 1:
        return False
    
    sqrt_x = int(x ** 0.5)
    if sqrt_x * sqrt_x != x:
        return False
    
    # Check if sqrt_x is prime
    if sqrt_x < 2:
        return False
    for i in range(2, int(sqrt_x ** 0.5) + 1):
        if sqrt_x % i == 0:
            return False
    return True
4
49
Proposer: claude-haiku-4-5 Solver: grok-4-fast-reasoning
0 vs 0
#2 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 1:
        return False
    disc = x * x - 1
    if disc % 61 != 0:
        return False
    y_sq = disc // 61
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
1766319049
1766319049
Proposer: grok-4-fast-reasoning Solver: claude-haiku-4-5
0 vs 0
#3 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 0:
        return False
    if (x * x + 1) % 2 != 0:
        return False
    y_sq = (x * x + 1) // 2
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
1
7
Proposer: claude-haiku-4-5 Solver: grok-4-fast-reasoning
0 vs 0
#4 Solver Failed
def mystery(x):
    if not isinstance(x, int) or x <= 1:
        return False
    disc = x * x - 1
    if disc % 109 != 0:
        return False
    y_sq = disc // 109
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
150482834445449
158070671986249
Proposer: grok-4-fast-reasoning Solver: claude-haiku-4-5
0 vs 1
#5 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 0:
        return False
    
    # Check if x is a perfect square
    sqrt_x = int(x ** 0.5 + 0.5)
    if sqrt_x * sqrt_x != x:
        return False
    
    # Check if x is also a triangular number
    # Triangular numbers: T_n = n(n+1)/2
    # We need: 1 + 8x = (2n+1)²
    disc = 1 + 8 * x
    sqrt_disc = int(disc ** 0.5 + 0.5)
    if sqrt_disc * sqrt_disc != disc:
        return False
    # Additional check: sqrt_disc must be odd
    return sqrt_disc % 2 == 1
1
36
Proposer: claude-haiku-4-5 Solver: grok-4-fast-reasoning
0 vs 1
#6 Sample Solution Wrong
def mystery(x):
    if not isinstance(x, int) or x <= 1:
        return False
    disc = x * x - 1
    if disc % 229 != 0:
        return False
    y_sq = disc // 229
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
2469645423824185801
Proposer: grok-4-fast-reasoning Solver: claude-haiku-4-5
0 vs 0
#7 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 0:
        return False
    
    if (x * x - 4) % 5 != 0:
        return False
    
    y_sq = (x * x - 4) // 5
    if y_sq < 0:
        return False
    
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
2
3
Proposer: claude-haiku-4-5 Solver: grok-4-fast-reasoning
0 vs 0
#8 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 1:
        return False
    disc = x * x - 1
    if disc % 73 != 0:
        return False
    y_sq = disc // 73
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
2281249
2281249
Proposer: grok-4-fast-reasoning Solver: claude-haiku-4-5
0 vs 0
#9 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 0:
        return False
    
    y_sq = 3 * (x * x - 1)
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
1
7
Proposer: claude-haiku-4-5 Solver: grok-4-fast-reasoning
0 vs 0
#10 Solved
def mystery(x):
    if not isinstance(x, int) or x <= 1:
        return False
    disc = x * x - 1
    if disc % 97 != 0:
        return False
    y_sq = disc // 97
    y = int(y_sq ** 0.5 + 0.5)
    return y * y == y_sq
62809633
62809633
Proposer: grok-4-fast-reasoning Solver: claude-haiku-4-5
0 vs 0