This problem is looking for the number of vertices on the hexagonal grid inside the circle of radius r. The center of the hexagon is not counted as a point for this problem, and this is true for every hexagon inside the circle.
406 Solvers
Project Euler: Problem 10, Sum of Primes
722 Solvers
291 Solvers
Replace multiples of 5 with NaN
361 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
236 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!