Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

The New Coffee Room

  1. TNCR
  2. General Discussion
  3. Puzzle time - prime test

Puzzle time - prime test

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 74 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jon-nycJ Online
    jon-nycJ Online
    jon-nyc
    wrote on last edited by jon-nyc
    #1

    Does 4^9 + 6^10 + 3^20 happen to be a prime number?

    Person. Woman. Man. Camera. TV.

    1 Reply Last reply
    • jon-nycJ Online
      jon-nycJ Online
      jon-nyc
      wrote on last edited by
      #2

      I cheated and calculated the sum and checked it against known primes so I have the answer. But I’m sure there’s a clever answer.

      Person. Woman. Man. Camera. TV.

      1 Reply Last reply
      • jon-nycJ Online
        jon-nycJ Online
        jon-nyc
        wrote on last edited by
        #3

        I have the clever solution. They could have made this problem with larger numbers so the brute force method was not possible.

        Person. Woman. Man. Camera. TV.

        1 Reply Last reply
        • KlausK Offline
          KlausK Offline
          Klaus
          wrote on last edited by Klaus
          #4

          :::

          (a-b)^2 = a^2-2ab+b^2.

          It's a square number. End of story.

          :::

          1 Reply Last reply
          • jon-nycJ Online
            jon-nycJ Online
            jon-nyc
            wrote on last edited by jon-nyc
            #5

            Yep, and to my point that they could have made it not solvable through brute force, it works for any 3^n and 2^(n-1).

            So ask about 4^999 + 6^1000 + 3^2000

            Person. Woman. Man. Camera. TV.

            1 Reply Last reply
            • jon-nycJ Online
              jon-nycJ Online
              jon-nyc
              wrote on last edited by
              #6

              2 weeks in a row they gave easy problems. Kinda disappointing.

              Person. Woman. Man. Camera. TV.

              1 Reply Last reply
              • KlausK Offline
                KlausK Offline
                Klaus
                wrote on last edited by
                #7

                But, to be honest, it was easier to derive the "clever" solution from the "brute force" solution than arriving directly at the "clever" soluton.

                1 Reply Last reply

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups