Open in app

Sign In

Write

Sign In

Ryuki Kuga
Ryuki Kuga

9 Followers

Home

About

Dec 12, 2021

Prime Number Stuff in Go

Check whether the number input is a prime number. // Time complexity - O(n) func isPrimeNumber(n int) bool { if n == 2 { return true } for i := 2; i < n; i++ { if n%i == 0 { return false } } return true } // Time complexity - O(log(n)) func isPrimeNumber(n int) bool { for i := 2; i < int(math.Sqrt(float64(n))); i++ { if n%i == 0 { return false; } } return true; }

Go

1 min read

Go

1 min read


Jul 25, 2020

How to change an existing directory name via terminal

Simple as hell mv ./<Your directory’s curruent name> ./<The new name of your directory> This is all you need to do✌️

Mac

1 min read

How to change an existing directory name via terminal
How to change an existing directory name via terminal
Mac

1 min read


Jul 16, 2020

Oh My Zsh Git Plugin

Learn to boost your terminal efficiency Shortcuts will increase productivity. …

Git

3 min read

Oh My Zsh Git Plugin
Oh My Zsh Git Plugin
Git

3 min read

Ryuki Kuga

Ryuki Kuga

9 Followers

Japan based Web Developer 🗼

Following
  • Ana Ghidelli

    Ana Ghidelli

  • Moonfarm Finance

    Moonfarm Finance

  • Shelby Church

    Shelby Church

  • Polka.Domain

    Polka.Domain

See all (8)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech