Revision f69350f5-16dd-4ebc-a015-a0043f036cba - Code Golf Stack Exchange
# [Io], 48 bytes
Port of @KevinCruijssen's Java answer.
method(i,c :=2;while(i%c>0,c=c+1);i log(c)%1==0)
[Try it online!][TIO-keb7te4t]
[Io]: http://iolanguage.org/
[TIO-keb7te4t]: https://tio.run/##nY1NDoMgGAX37xSExARSF36AVmvoEXoCN5ZiJcGfqE2PbzlD3@7NYiYs58BulnXn5I9xeYmQu/RV@x1D9CJk7l7kzroLyTawuLyFkxlZW8iTK2gY1GhAFVQJdYVWMA2qRAmkNUGZghIizdm@xnAI3s1csqlfRb8/PtPTb5INy@Z7N6Y2WNoggmTrFuYjzpDgFSilKpQG1OgaZU3mb935Aw "Io – Try It Online"
## Explanation
```
method(i, // Take an input
c := 2 // Set counter to 2
while(i%c>0, // While the input doesn't divide counter:
c=c+1 // Increment counter
)
i log(c)%1==0 // Is the decimal part of input log counter equal to 0?
)
```