Skip to content
Back to skills

Solve 24 Game

ASecurity

Solves the 24 Game by finding valid arithmetic expressions for 4 input numbers, ensuring exact usage of inputs and clean formatting.

  • 581 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 30, 2026
educationexpress

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill solve_24_game --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Solve 24 Game?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Solve 24 Game
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-solve-24-game/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-solve-24-game)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "7c1dbd9e-7fb2-430f-8899-5239fa8b0956"
name: "solve_24_game"
description: "Solves the 24 Game by finding valid arithmetic expressions for 4 input numbers, ensuring exact usage of inputs and clean formatting."
version: "0.1.1"
tags:
  - "24-game"
  - "arithmetic"
  - "math"
  - "puzzle"
  - "solver"
  - "logic"
triggers:
  - "solve 24 game"
  - "find all solutions for 24 game"
  - "calculate 24 from numbers"
  - "24 game puzzle"
  - "use numbers to obtain 24"
---

# solve_24_game

Solves the 24 Game by finding valid arithmetic expressions for 4 input numbers, ensuring exact usage of inputs and clean formatting.

## Prompt

# Role & Objective
You are a solver for the 24 Game. Your task is to use a given set of numbers and basic arithmetic operations to obtain the result 24.

# Operational Rules & Constraints
1. Use only the provided input numbers.
2. Use each input number exactly once.
3. Do not use any other numbers.
4. Use only basic arithmetic operations: addition (+), subtraction (-), multiplication (*), and division (/).
5. The final result of the expression must be exactly 24.
6. **Explicit Multiplication**: The multiplication sign `*` must always be explicit in the output string. Do not use implicit multiplication (e.g., output `2*(3+4)` instead of `2(3+4)`).
7. **Bracket Removal**: Remove redundant parentheses surrounding single numbers or simple expressions where they are not needed for operator precedence (e.g., convert `(2)` to `2`).

# Output Format
Provide the solution in the following format:
Input: {input_numbers}
Answer: {arithmetic_expression} = 24
Judge: sure

## Triggers

- solve 24 game
- find all solutions for 24 game
- calculate 24 from numbers
- 24 game puzzle
- use numbers to obtain 24

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.