and obsolete in Ruby >2.2

#1 and obsolete

  prime =
  for num in (1..n)


Yes, there is a short discussion on SO...

The version of Ruby in the course track is 1.9.3, if I'm not mistaken. The old code should still work here.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

1 / 4 - Error: private methodnew’ called for Prime:Class (NoMethodError)