atlas

Research map / Large language models / Agents, code and math

Benchmarking Large Language Models with Integer Sequence Generation Tasks

NeurIPS 2025 · Large language models › Agents, code and math · approach: Code generation benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces an OEIS-based benchmark of 1000 integer sequence generation tasks, evaluating 21 LLMs on Python code generation under time limits, with an LLM-based lookup-table cheating detector.

Problem

Existing math and code benchmarks do not rigorously test algorithmic reasoning on open-ended integer sequences, and models may memorize sequence values rather than compute them.

Approach

Uses OEIS integer sequences (with a split of pre-July-2024 "classic" and post-cutoff "contemporary" sequences, and easy/hard labels) as test cases, enforces runtime limits, and flags lookup-table cheating with an LLM judge validated against a human evaluator.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use reasoning-focused models instead of general-purpose modelsLLMs generating OEIS sequence code · Contemporary SequenceEasy and SequenceHardaverage accuracy scoreHelped
Allow a 4s code timeout instead of 0.5sReasoning-focused models · Contemporary SequenceHardaverage accuracy scoreHelped
Allow a 4s code timeout instead of 0.5sLLMs on contemporary sequences · Contemporary SequenceEasyaverage accuracy scoreNo clear effect
Generate code for hard sequences rather than easy sequencesEvaluated LLMs · OEIS benchmarkaverage accuracy scoreHurt
Use memoization to reuse previously verified primeso3 on sequence A380521 · A380521execution within time constraintsHelped

Surprising findings

Limitations

Experimental setup

Datasets: OEIS

Benchmarks: OEIS integer sequence benchmark (1000 sequences: contemporary and classic, easy and hard)

Metrics: average accuracy score percent perfect sequences percent flagged for cheating timeout-based pass rate

Baselines: gpt-4o gpt-4o-mini gpt-3.5-turbo claude-3.7-sonnet llama-405b gemini-1.5-pro

Builds on: OEIS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy