• 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
OreOlad@ Avatar
Name:Sean
Clan:CuppaGang
Member Since:Apr 2020
Last Seen:Apr 2024
Profiles:
Following:5
Followers:3
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (83)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • EugenSleptsov
    • commented on "Return 100" kumite
    • 2 years ago

    good update with !![] to get 1s, but template literal really looks like cheating

    still good improvement

  • Custom User Avatar
    • AntTech23
    • commented on "Return 100" kumite
    • 2 years ago

    Shortened previous kata with template literals, and true/false Arrays converted into 1's & 0's

  • Custom User Avatar
    • jdx228
    • commented on "Reverse Int or String" kumite
    • 3 years ago

    That's awesome!

  • Custom User Avatar
    • Chrono79
    • resolved a question on "Adding Big Numbers" kata
    • 4 years ago
  • Custom User Avatar
    • blinker345678
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    I came across this which inspired me to experiment with it.
    https://www.kaggle.com/chefele/scripts-first-try

  • Custom User Avatar
    • SirSkylord
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    Faster than my attemp, damn that's insane...

  • Custom User Avatar
    • qt10062095
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    both answer is correct.

  • Custom User Avatar
    • ozichukwu
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    also found that @FArekkusu's function returns primes < n. It would fail at n = 7, n = 17, etc.

  • Custom User Avatar
    • ozichukwu
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    I just had a quick look and yeah, it's basically the same. Just that @FArekkusu used a more efficient approach (subscript assignment to the list a thereby replacing the for loop you used in yours) to implement it.

  • Custom User Avatar
    • simon-tiger
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    Wait...that's just my starting algorithm!

  • Custom User Avatar
    • FArekkusu
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes

  • Custom User Avatar
    • ozichukwu
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    And here he comes to steal the show.. lol.
    Nice work here. I'm trying to wrap around the algorithm. Kindly explain. Thanks!

  • Custom User Avatar
    • simon-tiger
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    Ordered by speed:

    1. Fork #4
    2. Fork #3
    3. Fork #1
    4. Fork #2
      So, yes, this one is the quickest.
  • Custom User Avatar
    • simon-tiger
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    [deleted]

  • Custom User Avatar
    • simon-tiger
    • commented on "Get all primes up to a given number" kumite
    • 5 years ago

    [deleted]

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...