• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Raphango Avatar
Name:Ângelo Paulino
Clan:ITA
Skills:http://lattes.cnpq.br/7333632118022472
Member Since:May 2016
Last Seen:Sep 2023
Profiles:
Following:31
Followers:29
Allies:29
View Profile Badges
Ad
How many Kata did you complete in 2024?
Discover our top moments in 2024 and how you can level up in 2025.
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (91)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • terrencelovesu
    • commented on "Is n divisible by x and y?" cpp solution
    • 9 months ago

    cool

  • Custom User Avatar
    • WarpedReality
    • commented on "Is n divisible by x and y?" cpp solution
    • 11 months ago

    Yes. bitwise-or of the modulo(remainder). It is only zero if both modulos are zero.
    When using it on bools you have to be a bit careful, as (1 | 2) is 0011, and that is stored in boolean. true is 0001, so while (1 | 2) evalutes to true, it's not equal to true in some way. Here it's fine, but be aware. Negating with ! (boolean not) "normalizes" it to 0000 or 0001 though. ~ would be the bitwise not.

    bitwise-or may be faster as it does not branch (both sides are always evaluated), as opposed to boolean or. But don't rely on that.

  • Custom User Avatar
    • amremara206
    • commented on "Is n divisible by x and y?" cpp solution
    • 11 months ago

    is this the bitwise OR operator?

  • Custom User Avatar
    • yousefelkall
    • commented on "Is n divisible by x and y?" cpp solution
    • 11 months ago

    nice man good job ?? !!

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Professor Oak's Trouble - New Pokedex prototype" kata
    • 14 months ago

    Approved

  • Custom User Avatar
    • saudiGuy
    • created a suggestion for "Professor Oak's Trouble - New Pokedex prototype" kata
    • 16 months ago

    python new test framework is required. updated in this fork

  • Custom User Avatar
    • HamzahTheLegend
    • commented on "Simple Prime Number Generator" kata
    • 2 years ago

    the error is still there

  • Custom User Avatar
    • HamzahTheLegend
    • commented on "Simple Prime Number Generator" kata
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Simple Prime Number Generator" kata
    • 2 years ago

    Approved

  • Custom User Avatar
    • saudiGuy
    • created a suggestion for "Simple Prime Number Generator" kata
    • 2 years ago

    python new test framework is required. updated in this fork

  • Custom User Avatar
    • Dr.Mo3giza
    • commented on "Is n divisible by x and y?" cpp solution
    • 2 years ago

    it's really clever but indentation is not very good.

  • Custom User Avatar
    • Abdelaziem06
    • commented on "Is n divisible by x and y?" cpp solution
    • 2 years ago

    nice coding

  • Custom User Avatar
    • rowcased
    • commented on "Simple Prime Number Generator" kata
    • 5 years ago

    You can just print the input: random testing reaches up to n = 100,000

  • Custom User Avatar
    • sirapu
    • commented on "Simple Prime Number Generator" kata
    • 5 years ago

    I am running in a timeout when submitting my solution. I tested it for a limit of 1500 without running in a timeout.
    Which is the highest number use in the tests?
    Thx

  • Custom User Avatar
    • user5286943
    • commented on "Simple Prime Number Generator" kata
    • 5 years ago

    there is a difference between a person trying to solve a 7kyu, i guess, it is not at all a 7 kyu at least needs to be 5 kyu. of course for "dan's" it might be a single line, but the complexity level should be set according to a person most likely to solve it i.e. a newbee.

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...