Javascript Objekte aus Array von Objekten erzeugen

Letztens war ich in der Situation Form Data per Ajax an eine Flask Route schicken zu wollen, um die Daten zwischendurch in der DB zwischenzuspeichern.

Dazu muss die Form serialisiert werden und Javascript stellt dafür auch die Funktion serializeArray zur Verfügung. Nur kamen die Daten dabei nicht so raus, wie ...

Weiterlesen label_outline javascript

Project Euler #011 - Largest product in a grid

What is the greatest product of four adjacent numbers in the same direction (up, down, left, right, or diagonally) in the 20×20 grid?

Project Euler #010 - Summation of primes

The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.

Project Euler #009 - Special Pytagorean triplet

Problem

A Pythagorean triplet is a set of three natural numbers, \(a < b < c\), for which,
\(\qquad a^2 + b^2 = c^2\)
For example, \(3^2 + 4^2 = 25 = 5^2\)
There exists exactly one Pythagorean triplet for which \(a + b + c = 1000\).
Find the product \(abc\).

PE#009 ...

Project Euler #008 - Largest product in a series

Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?