Anjanesh

Anjanesh

Simple check for square root in a loop using integers alone

Aug 4, 20212 min read

There was a situation where I couldn't get to use decimal / floating numbers in a variable or like in sqrt($n). To check for a prime number, we need to check all odd numbers till the square root of a number for modulus 0. If n mod i is zero then it's...

Running websites in Go
Displaying data (an array of objects) using Alpine JS in a table