python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Haskell list condition
I have started to learn Haskell yesterday, so you can consider me a complete newbie.
I wanted a list of prime numbers, so I stated:
multiples max reihe = [ x | x <- [reihe*2,reihe * 3..max], x<=...
Michèle S.
Votes: 0
Answers: 1
Eratosthenes Sieve - finding the order of crossing numbers out
first off let. me say this is not a homework:)
in Eratosthenes Sieve, from 1 to a given number k, I want to find and return the order of crossing out a given number n without using list, tuple, set an...
Michael
Votes: 0
Answers: 2
Finding all prime numbers from 1 to N using GCD (An alternate approach to sieve-of-eratosthenes)
To find all prime numbers from 1 to N.
I know we usually approach this problem using Sieve of Eratosthenes, I had an alternate approach in mind using gcd that I wanted your views on.
My approach->
...
Shivang Kaul
Votes: 0
Answers: 2
Sieve of Eratosthenes run slower after improving
I try to improve basic Sieve of Eratosthenes algorithm by avoiding cross out duplicate multiple of primes, but it turn out to be worse than my expectation
I has implemented two method that return prim...
KevinBui
Votes: 0
Answers: 1