| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Prime/ |
Upload File : |
U:RDoc::AnyMethod[iI" each:EFI"Prime#each;TF: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:@label[I" +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"DCalls +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 it ;TI",yields all prime numbers p <= +ubound+.;T: @fileI"lib/prime.rb;T:0@omit_headings_from_table_of_contents_below000[ I"B(ubound = nil, generator = EratosthenesGenerator.new, &block);T@:FI" Prime;TcRDoc::NormalClass00