Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Programming interview problems

Programming interview problems

Scheduled Pinned Locked Moved The Insider News
careercom
5 Posts 5 Posters 0 Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    SD Times[^]:

    A programmer walks into a job interview and is asked to write the most efficient program to output the first five primes.

    To the whiteboard!

    K D 2 Replies Last reply
    0
    • K Kent Sharkey

      SD Times[^]:

      A programmer walks into a job interview and is asked to write the most efficient program to output the first five primes.

      To the whiteboard!

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      its a one-liner: print("2, 3, 5, 7, 13"); :rolleyes:

      Press F1 for help or google it. Greetings from Germany

      J N 2 Replies Last reply
      0
      • K Kent Sharkey

        SD Times[^]:

        A programmer walks into a job interview and is asked to write the most efficient program to output the first five primes.

        To the whiteboard!

        D Offline
        D Offline
        Dominic Burford
        wrote on last edited by
        #3

        Already posted (see eighth post below this one).

        "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter

        1 Reply Last reply
        0
        • K KarstenK

          its a one-liner: print("2, 3, 5, 7, 13"); :rolleyes:

          Press F1 for help or google it. Greetings from Germany

          J Offline
          J Offline
          JMK NI
          wrote on last edited by
          #4

          11?

          1 Reply Last reply
          0
          • K KarstenK

            its a one-liner: print("2, 3, 5, 7, 13"); :rolleyes:

            Press F1 for help or google it. Greetings from Germany

            N Offline
            N Offline
            newton saber
            wrote on last edited by
            #5

            KarstenK wrote:

            its a one-liner:

            Ingenious! Because I thought the same thing. :D We are geniuses.

            1 Reply Last reply
            0
            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
            • World
            • Users
            • Groups