let k = 1919;
let j = 1918;

while (k % j != 0) {
    j += -1;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: