01. Basics
🧠Problem Solving Strategy
- Square Root Rule: For prime checks or finding factors, you only need to iterate up to \(\sqrt{N}\).
- Modulo Operator: Use
%to extract digits (e.g.,n % 10gets the last digit) or check divisibility. - Edge Cases: Always check for
0,1, and negative numbers.