Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.103
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby33 /
share /
gems /
gems /
prime-0.1.2 /
Delete
Unzip
Name
Size
Permission
Date
Action
bin
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
lib
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Gemfile
167
B
-rw-r--r--
2026-04-07 17:22
LICENSE.txt
1.25
KB
-rw-r--r--
2026-04-07 17:22
README.md
1
KB
-rw-r--r--
2026-04-07 17:22
Rakefile
198
B
-rw-r--r--
2026-04-07 17:22
Save
Rename
# Prime Prime numbers and factorization library. ## Installation Add this line to your application's Gemfile: ```ruby gem 'prime' ``` And then execute: $ bundle Or install it yourself as: $ gem install prime ## Usage ```ruby require 'prime' # Prime is the set of all prime numbers, and it is Enumerable. Prime.take(4) #=> [2, 3, 5, 7] Prime.first(4) #=> [2, 3, 5, 7] Prime.each(7).to_a #=> [2, 3, 5, 7] # Determining whether an arbitrary integer is a prime number Prime.prime?(7) #=> true 8.prime? #=> false # Factorization in prime numbers Prime.prime_division(8959) #=> [[17, 2], [31, 1]] Prime.int_from_prime_division([[17, 2], [31, 1]]) #=> 8959 17**2 * 31 #=> 8959 ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/prime. ## License The gem is available as open source under the terms of the [BSD-2-Clause](LICENSE.txt).