Flowdock
method

succ

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Generator23
succ() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/prime.rb, line 352
    def succ
      loop do
        if (@step)
          @prime += @step
          @step = 6 - @step
        else
          case @prime
          when 1; @prime = 2
          when 2; @prime = 3
          when 3; @prime = 5; @step = 2
          end
        end
        return @prime
      end
    end
Register or log in to add new notes.