⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
Prime
/
View File Name :
each-i.ri
U:RDoc::AnyMethod[iI" each:EFI"Prime#each;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"5Iterates the given block over all prime numbers.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Parameters;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@labelI" +ubound+;T; [o; ; [I",Optional. An arbitrary positive number.;TI":The upper bound of enumeration. The method enumerates;TI"1prime numbers infinitely if +ubound+ is nil.;To;;I"+generator+;T; [o; ; [I";Optional. An implementation of pseudo-prime generator.;T@S;; i;I"Return value;T@o; ; [I"<An evaluated value of the given block at the last time.;TI"<Or an enumerator which is compatible to an +Enumerator+;TI"if no block given.;T@S;; i;I"Description;T@o; ; [I"CCalls +block+ once for each prime number, passing the prime as;TI"a parameter.;T@o;;;;[o;;I" +ubound+;T; [o; ; [I";Upper bound of prime numbers. The iterator stops after;TI",yields all prime numbers p <= +ubound+.;T@S;; i;I" Note;T@o; ; [I"K+Prime+.+new+ returns a object extended by +Prime+::+OldCompatibility+;TI"Kin order to compatibility to Ruby 1.8, and +Prime+#each is overwritten;TI"+by +Prime+::+OldCompatibility+#+each+.;T@o; ; [I"K+Prime+.+new+ is now obsolete. Use +Prime+.+instance+.+each+ or simply;TI"+Prime+.+each+.;T: @file000[ I"B(ubound = nil, generator = EratosthenesGenerator.new, &block);TI"lib/prime.rb;T