studi kasus bilangan prima

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #230641
    rifqiw
    Participant

      Kalo ini knp gk di modulus aja?

      kayak if(i % 2 == 0){
      console.log(“bilangan genap”)
      }
      else{
      console.log(“bilangan prima”)
      }

      #230692
      rifqiw
      Participant

        halo. kok gk ada jawaban min.

        #230750
        Coach Vincent
        Moderator

          utk pengertian bilangan prima adalah bilangan yang memiliki 2 faktor
          sehingga jika langsung di modulus utk cek ganjil atau genap

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.
        Shopping cart0
        There are no products in the cart!
        Continue shopping