Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/forthrig/public_html/wp-content/plugins/anycomment/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 147

Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/forthrig/public_html/wp-content/plugins/anycomment/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 155

Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/forthrig/public_html/wp-content/plugins/anycomment/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 163

Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/forthrig/public_html/wp-content/plugins/anycomment/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 171

Deprecated: Return type of PhpOption\Some::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/forthrig/public_html/wp-content/plugins/anycomment/vendor/phpoption/phpoption/src/PhpOption/Some.php on line 151

Deprecated: Return type of PhpOption\None::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/forthrig/public_html/wp-content/plugins/anycomment/vendor/phpoption/phpoption/src/PhpOption/None.php on line 118
code Archives | forthright48 https://forthright48.com/tag/code/ learning never ends Fri, 07 Dec 2018 20:30:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.8 Euler Totient or Phi Function https://forthright48.com/euler-totient-or-phi-function/?utm_source=rss&utm_medium=rss&utm_campaign=euler-totient-or-phi-function https://forthright48.com/euler-totient-or-phi-function/#comments Fri, 04 Sep 2015 11:38:00 +0000 I have been meaning to write a post on Euler Phi for a while now, but I have been struggling with its proof. I heard it required the Chinese Remainder Theorem, so I have been pushing this until I covered CRT. But recently, I found that CRT is not required and it can be proved …

The post Euler Totient or Phi Function appeared first on forthright48.

]]>
https://forthright48.com/euler-totient-or-phi-function/feed/ 4
Primality Test – Naive Methods https://forthright48.com/primality-test-naive-methods/?utm_source=rss&utm_medium=rss&utm_campaign=primality-test-naive-methods https://forthright48.com/primality-test-naive-methods/#respond Wed, 08 Jul 2015 14:11:00 +0000 https://forthright48.com/2015/07/08/primality-test-naive-methods/ Problem Given a number N, determine if it is a prime. What is a Prime Number? A prime number is a positive number greater than 1 which has no positive divisor except for 1 and itself. For example, 2, 3, 5, 11 are prime numbers. Whereas 4, 6 are non-prime or composite numbers. O(N) Solution …

The post Primality Test – Naive Methods appeared first on forthright48.

]]>
https://forthright48.com/primality-test-naive-methods/feed/ 0