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.216.45
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby20 /
share /
ri /
2.0.0 /
system /
Prime /
Delete
Unzip
Name
Size
Permission
Date
Action
EratosthenesGenerator
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
EratosthenesSieve
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
Generator23
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
OldCompatibility
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
PseudoPrimeGenerator
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
TrialDivision
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
TrialDivisionGenerator
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
cdesc-Prime.ri
2.42
KB
-rw-r--r--
2023-07-26 17:38
each-i.ri
1.6
KB
-rw-r--r--
2023-07-26 17:38
instance-c.ri
303
B
-rw-r--r--
2023-07-26 17:38
int_from_prime_division-i.ri
963
B
-rw-r--r--
2023-07-26 17:38
new-c.ri
317
B
-rw-r--r--
2023-07-26 17:38
prime%3f-i.ri
672
B
-rw-r--r--
2023-07-26 17:38
prime_division-i.ri
1.24
KB
-rw-r--r--
2023-07-26 17:38
Save
Rename
U:RDoc::NormalClass[iI" Prime:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I""The set of all prime numbers.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim;[I" Prime.each(100) do |prime| ;TI"- p prime #=> 2, 3, 5, 7, 11, ...., 97 ;TI" end ;T:@format0o; ;[I"Prime is Enumerable:;T@o;;[I")Prime.first 5 # => [2, 3, 5, 7, 11] ;T;0S;;i; I"Retrieving the instance;T@o; ;[I"O+Prime+.new is obsolete. Now +Prime+ has the default instance and you can ;TI"#access it as +Prime+.instance.;T@o; ;[I"OFor convenience, each instance method of +Prime+.instance can be accessed ;TI""as a class method of +Prime+.;T@o; ;[I" e.g.;To;;[I"(Prime.instance.prime?(2) #=> true ;TI"(Prime.prime?(2) #=> true ;T;0S;;i; I"Generators;T@o; ;[ I"JA "generator" provides an implementation of enumerating pseudo-prime ;TI"Knumbers and it remembers the position of enumeration and upper bound. ;TI"JFurthermore, it is a external iterator of prime enumeration which is ;TI"!compatible to an Enumerator.;T@o; ;[I"G+Prime+::+PseudoPrimeGenerator+ is the base class for generators. ;TI"0There are few implementations of generator.;T@o:RDoc::Markup::List: @type: LABEL:@items[o:RDoc::Markup::ListItem:@label[I"%+Prime+::+EratosthenesGenerator+;T;[o; ;[I"Uses eratosthenes's sieve.;To;;[I"&+Prime+::+TrialDivisionGenerator+;T;[o; ;[I"$Uses the trial division method.;To;;[I"+Prime+::+Generator23+;T;[o; ;[ I"FGenerates all positive integers which is not divided by 2 nor 3. ;TI"DThis sequence is very bad as a pseudo-prime sequence. But this ;TI"Dis faster and uses much less memory than other generators. So, ;TI"Fit is suitable for factorizing an integer which is not large but ;TI"4has many prime factors. e.g. for Prime#prime? .;T: @fileI"lib/prime.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [[I"Enumerable;To;;[ ;@V;0I"lib/prime.rb;T[[I" class;T[[:public[[I" instance;F@^[I"new;T@^[:protected[ [:private[ [I" instance;T[[;[ [I" each;F@^[I"int_from_prime_division;F@^[I"prime?;F@^[I"prime_division;F@^[;[ [;[ [[I"OldCompatibility;To;;[ ;@V;0@^[I"Forwardable;To;;[ ;@V;0@^[U:RDoc::Context::Section[i 0o;;[ ;0;0[@V@VcRDoc::TopLevel