• 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
TySlothrop Avatar
Name:Mario C Kataoka
Clan:Unknown
Member Since:Apr 2017
Last Seen:Mar 2021
Profiles:
Following:5
Followers:5
Allies:3
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (85)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • metatable
    • created a suggestion for "The search for Primes! Twin Primes!" kata
    • 13 months ago

    Lua translation!

  • Custom User Avatar
    • Chrono79
    • commented on "The search for Primes! Twin Primes!" kata
    • 13 months ago

    n + 2 is outside the range. if n was 12, then yes, the 11-13 pair should be counted.

  • Custom User Avatar
    • Mednoob
    • commented on "The search for Primes! Twin Primes!" kata
    • 13 months ago

    Well, if it's end-inclusive then for input 11 shouldn't it result in 3 instead of 2 since 11 + 2 is also prime?

    Anyway, the description is still unclear imo.

  • Custom User Avatar
    • JohanWiltink
    • commented on "The search for Primes! Twin Primes!" kata
    • 13 months ago

    How does this match with "If n is wrapped by twin primes (n-1 == prime && n+1 == prime) then that should also count even though n+1 is outside the range." ? That sounds end-inclusive ( and even slightly overinclusive, but specified unambiguously nevertheless ).

  • Custom User Avatar
    • KayleighWasTaken
    • resolved a suggestion on "The search for Primes! Twin Primes!" kata
    • 13 months ago

    Fixed. JS tests now use identical parameters to Python.

  • Custom User Avatar
    • Mednoob
    • created an issue for "The search for Primes! Twin Primes!" kata
    • 13 months ago

    Your mission, should you choose to accept it, is to write a function that counts the number of sets of twin primes from 1 to n.

    It was not mentioned that the range is end-exclusive.

  • Custom User Avatar
    • JohanWiltink
    • resolved an issue on "The search for Primes! Twin Primes!" kata
    • 13 months ago

    that should have fixed the issue then

  • Custom User Avatar
    • trashy_incel
    • commented on "The search for Primes! Twin Primes!" kata
    • 13 months ago

    the tests are missing require 'prime' (which is a standard Ruby module) at the top (they currently rely on the fact that the author's solution does require it)

    fixed here

  • Custom User Avatar
    • Pale-Vessel
    • created an issue for "The search for Primes! Twin Primes!" kata
    • 13 months ago

    In Ruby, I seem to have to create an alias for my function called Prime before the random tests will run.

  • Custom User Avatar
    • ejini战神
    • resolved an issue on "Happy Numbers" kata
    • 2 years ago

    fixed in OP's fork

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Happy Numbers" kata
    • 2 years ago

    Approved

  • Custom User Avatar
    • saudiGuy
    • created a suggestion for "Happy Numbers" kata
    • 2 years ago

    python new test framework is required. updated in this fork

  • Custom User Avatar
    • saudiGuy
    • created an issue for "Happy Numbers" kata
    • 2 years ago

    Python :

    • The example tests aren't using the test framework, and both test suite and example tests are missing the imports (user's solution + framework).
  • Custom User Avatar
    • Chrono79
    • commented on "The search for Primes! Twin Primes!" kata
    • 2 years ago

    Javascript reference solution is too slow to use the same range. Maybe it should be rewritten.

  • Custom User Avatar
    • tolgaersoy
    • commented on "The search for Primes! Twin Primes!" kata
    • 2 years ago

    Yes. I solved that kata. I looked my old solution and I solved this kata. I forgetted How can I use fastly prime number calculate method. I remember again. Thank you man. Respect.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...