Lemmings.world
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Mac@programming.dev to Programmer Humor@programming.dev · 1 year ago

isEven API

isevenapi.xyz

external-link
message-square
28
link
fedilink
288
external-link

isEven API

isevenapi.xyz

Mac@programming.dev to Programmer Humor@programming.dev · 1 year ago
message-square
28
link
fedilink
  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    54
    ·
    1 year ago

    Oh, bummer, my number isn’t supported by the free version:

    https://api.isevenapi.xyz/api/iseven/8764389587485736749956772984692357867345989845699872561/

    • Captain Janeway@lemmy.world
      link
      fedilink
      arrow-up
      46
      ·
      1 year ago

      Just divide that number by two until it’s small enough to make the request under the free version.

      • taaz@biglemmowski.win
        link
        fedilink
        English
        arrow-up
        40
        ·
        1 year ago

        pretty sure that has to be against their TOS

        /s

        • mormegil@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          That’s against the terms of math :-)

    • Aa!@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      1 year ago

      That’s not even supported by the enterprise version. You’re going to need a special agreement with the iseven people to support numbers like that

    • fckreddit@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Easy workaround, just test the last digit. If it is even, the entire number is even, else odd.

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        1 year ago

        That’s preposterous! Next time you’ll tell me the language I’m using has a builtin operator that test if a number can be divided by another!

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.13K users / day
  • 4.36K users / week
  • 8.58K users / month
  • 17.9K users / 6 months
  • 96 local subscribers
  • 23.2K subscribers
  • 1.39K Posts
  • 51.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org