Here's what I got when solving in PHP, one cycle
enter code here
for ($i=0,$j=1;$j<=100;$i++,$j=$j+$i){
}echo $i;