Algorithms – ‘Sieve of Eratosthenes’ – Find all primes numbers till n


Fatal error: Uncaught Error: Call to a member function id() on array in /home/customer/www/itsallbinary.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /home/customer/www/itsallbinary.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /home/customer/www/itsallbinary.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', '// Sieve of Era...') #3 /home/customer/www/itsallbinary.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('// Sieve of Era...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /home/customer/www/itsallbinary.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(1 in /home/customer/www/itsallbinary.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36