Ruby puts not outputting in real time

前端 未结 1 1638
春和景丽
春和景丽 2020-12-19 18:07

I\'ve started some problems on Project Euler. One of the questions:

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the numbe

相关标签:
1条回答
  • 2020-12-19 19:00

    Try adding a STDOUT.sync = true. You could also try STDOUT.flush after the puts. Some more info here.

    0 讨论(0)
提交回复
热议问题