<?php $a = 0; $b = 2000000; $k = 40; echo count(array_filter(range($a, $b), function ($i) use ($k) { return $i % $k === 0; }));
You have javascript disabled. You will not be able to edit any code.