This repository has been archived on 2025-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
kurz/project_euler/problem_1.qbl
2023-07-28 07:05:09 +02:00

31 lines
303 B
Plaintext

import "../std.qbl"
true 3 0
while
{
// i sum
dup check req req +
incAndCheck req
}
deq intToStr println
function int => int check
{
3 dup % 0 req != req
// not_divisible start
if
{
5 dup % 0 req != req
if
{
deq 0
}
}
}
function int => bool int incAndCheck
{
1 + 1000 dup < req
}