Type:
Class
Constants:
BITS_PER_ENTRY : 16
NUMS_PER_ENTRY : BITS_PER_ENTRY * 2
ENTRIES_PER_TABLE : 8
NUMS_PER_TABLE : NUMS_PER_ENTRY * ENTRIES_PER_TABLE
FILLED_ENTRY : (1 << NUMS_PER_ENTRY) - 1

Internal use. An implementation of eratosthenes's sieve

next_to
  • References/Ruby on Rails/Ruby/Classes/Prime/Prime::EratosthenesSieve

next_to(n) Instance Public methods returns the least odd prime number which

2025-01-10 15:47:30