Perl Weekly Challenge 133: Integer Square Roots and Smith Numbers
These are some answers for Week 133 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a few days from now (on October 10, 2021 at 23:59). This blog post offers some solutions to this challenge, please don’t read on if you intend to complete the challenge on your own.
Task 1: Integer Square Root
You are given a positive integer $N.
Write a script to calculate the integer square root of the given number.
Please avoid using built-in function. Find out more about it https://en.wikipedia.org/wiki/Integer_square_root.
Examples:



