logical riddle 5+25

Description

http://www.our-ai.com/img/riddle5_25.jpg

Inputs

  • number1
  • number2

Outputs

  • a

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
number1: 1
number2: 5
a: 12
2.
number1: 2
number2: 10
a: 24
3.
number1: 3
number2: 15
a: 36

Applicable neurons

  • Plus (x + y)
  • Minus (x - y)
  • Multiple (x × y)
  • x to the 2 (x²)
  • Division (x ÷ y)
  • Connect - two inputs
  • character o
  • delete a period at the end of a sentence
  • (a, b]
  • x × (-1)
  • constant x.xxx
  • \\w
  • IfNull
  • get month, day (mm-dd) from date (yyyy-mm-dd)

Algorithm

Test

Code made by AI:
/**
 * Plus (x + y): The addition of two whole numbers is the total amount of those quantities combined.
 *
 * @param x1 first number
 * @param x2 second number
 * @return {Array}
 */
function neuron1(x1, x2)
{
math.config({number: 'BigNumber', precision: 64}); return [math.eval(Number(x1) + '+'+Number(x2)).toString()];
}

/**
 * logical riddle 5+25: http://www.our-ai.com/img/riddle5_25.jpg
 * 
 * @param x1 number1
 * @param x2 number2
 * @return {Array}
 */
function neuron747(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron1(outputs[0], outputs[1]);
  outputs[2] = arr[0];

  arr = neuron1(outputs[2], outputs[2]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


Code made by AI:

Create your family tree for free