• 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
Snabbaspirit Avatar
Name:Unknown
Clan:Unknown
Member Since:Apr 2019
Last Seen:Jun 2024
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (8)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Chrono79
    • commented on "Sum of Intervals" kata
    • 2 years ago

    Those 3 can become [1,11], but you have there [10,20] too, and in the end, all of them become [1,20].

  • Custom User Avatar
    • Kingcobra_
    • commented on "Sum by Factors" kata
    • 4 years ago

    Thanks! :D.

  • Custom User Avatar
    • Awesome A.D.
    • commented on "Sum by Factors" kata
    • 4 years ago

    @kingcobra_

    You need to find the prime factors of all elements of I, then produce the sum of all elements of I that share that prime factor: [(prime factor p1, sum of all elements of I with prime factor p), (prime factor p2, sum of all elements of I with prime factor p2), ...]

  • Custom User Avatar
    • Kingcobra_
    • commented on "Sum by Factors" kata
    • 4 years ago

    i actually didnt understand the kata.
    is it like finding the factor of a number which is prime?

  • Custom User Avatar
    • Chrono79
    • commented on "Sum by Factors" kata
    • 4 years ago

    Yes, that's why you get [3, 27 = 12 + 15] and [5, 15]

  • Custom User Avatar
    • Kingcobra_
    • commented on "Sum by Factors" kata
    • 4 years ago

    but 5 and 3 are prime factors of 15 right

  • Custom User Avatar
    • Chrono79
    • commented on "Sum by Factors" kata
    • 4 years ago

    6 is not a prime number.

  • Custom User Avatar
    • hobovsky
    • commented on "Calculator" kata
    • 4 years ago

    https://docs.codewars.com/training/troubleshooting#print-input

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...