benchmarks.wiki / Public workspace

BIG-Bench Extra Hard (BBEH) / Consider the following new operations:

Problem

Answer published by the source. Consult the official source to check your work against its answer.

input

Consider the following new operations: $a ~ b$ equals min(a,b)min(a, b) if either aa or bb is prime and max(a,b)max(a, b) otherwise. a[]ba [] b equals $(a * a) + b$ if b<2b < 2 and $(b * b) + a$ otherwise. a><ba >< b equals $(a * b)$ if a[]b>0a [] b > 0; otherwise, it equals $-a * -b$. $a # b$ equals (a−b)(a - b) if $a * b > 0$; otherwise, it equals a><ba >< b. $a @ b$ equals (a−b)(a - b) if a+b>0a + b > 0; otherwise, it equals a+ba + b. a][ba ][ b equals $(b + a) ~ b$ if |a−b|<2|a-b| < 2 and $(a + b) ~ a$ otherwise. Let A = ((((-6 + -8) # (-4 * -3)) * ((2 [] four) - (-8 @ 10))) ~ (((-3 ][ -2) * (three @ eight)) ][ ((two >< 4) * (3 * one)))) Let B = (((((((((((((((((((four # -2) @ one) @ 6) * -7) * ten) # -4) * eight) ][ -6) [] 7) ][ -7) * -4) >< eight) - seven) * 1) @ -4) * three) ][ -7) * -8) ~ 9) Let C = ((((((((((((((((((((((nine @ -5) + -5) # -4) + 5) ~ -7) [] -5) - 7) ][ 9) @ 10) ~ -2) [] nine) [] -7) ~ -9) + -5) # 10) ~ one) # -4) >< 5) [] -10) >< 3) # 9) + -9). Compute A + B - C. Your final answer must be in number form.
Plain-text mathematical notation (without MathML)
Consider the following new operations:

$a ~ b$ equals min(a,b) if either a or b is prime and max(a,b) otherwise.
a[]b equals $(a * a) + b$ if b<2 and $(b * b) + a$ otherwise.
a><b equals $(a * b)$ if a[]b>0; otherwise,  it equals $-a * -b$.
$a # b$ equals (a−b) if $a * b > 0$; otherwise,  it equals a><b.
$a @ b$ equals (a−b) if a+b>0; otherwise,  it equals a+b.
a][b equals $(b + a) ~ b$ if |a−b|<2 and $(a + b) ~ a$ otherwise.

Let A = ((((-6 + -8) # (-4 * -3)) * ((2 [] four) - (-8 @ 10))) ~ (((-3 ][ -2) * (three @ eight)) ][ ((two >< 4) * (3 * one))))
Let B = (((((((((((((((((((four # -2) @ one) @ 6) * -7) * ten) # -4) * eight) ][ -6) [] 7) ][ -7) * -4) >< eight) - seven) * 1) @ -4) * three) ][ -7) * -8) ~ 9)
Let C = ((((((((((((((((((((((nine @ -5) + -5) # -4) + 5) ~ -7) [] -5) - 7) ][ 9) @ 10) ~ -2) [] nine) [] -7) ~ -9) + -5) # 10) ~ one) # -4) >< 5) [] -10) >< 3) # 9) + -9).
Compute A + B - C. Your final answer must be in number form.
Original LaTeX notation
Consider the following new operations:

$a ~ b$ equals $min(a, b)$ if either $a$ or $b$ is prime and $max(a, b)$ otherwise.
$a [] b$ equals $(a * a) + b$ if $b < 2$ and $(b * b) + a$ otherwise.
$a >< b$ equals $(a * b)$ if $a [] b > 0$; otherwise,  it equals $-a * -b$.
$a # b$ equals $(a - b)$ if $a * b > 0$; otherwise,  it equals $a >< b$.
$a @ b$ equals $(a - b)$ if $a + b > 0$; otherwise,  it equals $a + b$.
$a ][ b$ equals $(b + a) ~ b$ if $|a-b| < 2$ and $(a + b) ~ a$ otherwise.

Let A = ((((-6 + -8) # (-4 * -3)) * ((2 [] four) - (-8 @ 10))) ~ (((-3 ][ -2) * (three @ eight)) ][ ((two >< 4) * (3 * one))))
Let B = (((((((((((((((((((four # -2) @ one) @ 6) * -7) * ten) # -4) * eight) ][ -6) [] 7) ][ -7) * -4) >< eight) - seven) * 1) @ -4) * three) ][ -7) * -8) ~ 9)
Let C = ((((((((((((((((((((((nine @ -5) + -5) # -4) + 5) ~ -7) [] -5) - 7) ][ 9) @ 10) ~ -2) [] nine) [] -7) ~ -9) + -5) # 10) ~ one) # -4) >< 5) [] -10) >< 3) # 9) + -9).
Compute A + B - C. Your final answer must be in number form.

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import