• 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
Zhihar Avatar
Name:Ivan
Clan:Unknown
Member Since:May 2022
Last Seen:May 2025
Profiles:
    Following:2
    Followers:5
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (13)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • adbiLenLa
      • commented on "Simple Fun #11: Swap Adjacent Bits" python solution
      • 6 months ago

      11bqr

      nice solution
      i do not understand it

    • Custom User Avatar
      • LilianaKor
      • commented on "Cats and shelves" python solution
      • 8 months ago

      I like it!

    • Custom User Avatar
      • Yushi.py
      • commented on "Remove the parentheses" python solution
      • 17 months ago

      Yeah

    • Custom User Avatar
      • Joshua Knowles
      • commented on "Remove the parentheses" python solution
      • 2 years ago

      Am I correct in saying that this wouldn't work if there were opening parentheses without closing parentheses to match it?

    • Custom User Avatar
      • raulbc777
      • commented on "Primes in the Last Digits of Huge Numbers" kata
      • 3 years ago

      Ok. Thanks for pointing out this observation. Tomorrow I'll be checking it. I'm traveling.

    • Custom User Avatar
      • Zhihar
      • commented on "Primes in the Last Digits of Huge Numbers" kata
      • 3 years ago

      wrong:

          p = f5 % 1000000000
          if p > 100000000 and is_prime(p):
      

      correct:

          p = f5 % 1000000000
          if f5 > 1000000000 and is_prime(p):
      

      This point is not reflected in the condition of the problem :(
      It should be explicitly stated that the last 9 digits can contain leading zeros, but the number itself must be at least 9 digits

    • Custom User Avatar
      • Zhihar
      • created a question for "Primes in the Last Digits of Huge Numbers" kata
      • 3 years ago

      if they check only 9-digit prime, I successfully perform 11 tests (up to n = 20)

      if I check 8-digit and 9-digit prime, I successfully complete 21 tests (up to n = 100)

      If I check 7-digit prime also, then I do not carry out any successful test

      Is there something missing in the problem statement? Or is the prime test wrong?

    • Custom User Avatar
      • FoxX322
      • commented on "Square and Cube of a Number Become Prime When Reversed" kata
      • 3 years ago

      As well as 890, i believe.

    • Custom User Avatar
      • akar-0
      • resolved a suggestion on "Regular Ball Super Ball" kata
      • 3 years ago

      I didn't know it was just American, I thought it was the norm in all English language (eg. it's used in all English Wikipedia).

    • Custom User Avatar
      • hobovsky
      • commented on "Regular Ball Super Ball" kata
      • 3 years ago

      Period inside quotes is a rule in American grammar. Believe this or not, Americans consider this notation "normal."

    • Custom User Avatar
      • Zhihar
      • created a suggestion for "Regular Ball Super Ball" kata
      • 3 years ago

      If no arguments are given, ball objects should instantiate with a "ball type" of "regular."

      ->

      If no arguments are given, ball objects should instantiate with a "ball type" of "regular".

      "regular" INSTEAD "regular."

    • Custom User Avatar
      • Zhihar
      • commented on "Square and Cube of a Number Become Prime When Reversed" kata
      • 3 years ago

      1 = 89,
      2 = 271,
      3 = 325,
      4 = 328,
      5 = 1025,
      6 = 1055,
      7 = 1081,
      8 = 1129,
      9 = 1169

      but in the test sq_cub_rev_prime(9) = 1129, why?
      1025, 1055, 1081 also have the required properties

    • Custom User Avatar
      • Blind4Basics
      • commented on "15x15 Nonogram Solver" python solution
      • 3 years ago

      Hi,

      next time, don't post the solution to the hard version in the easy one, thx.

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...