Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 669 results for
sieve
- Page 1
Sieve of Erastothenes simply with nested loops
Programming
Software Development
9 Years Ago
by kouty
…good evening! **The Aim:** to obtain a
Sieve
of Erastothenes **The Means:** to build a function… purpose is to build a
sieve
of Erasthotenes. We beginn with a
sieve
without holes, called biglist. … bigList[multiple] = False return(bigList) #We expect a '
sieve
with many holes' print("the last result of bigList…
Re: Sieve of Eratosthenes in JavaScript
Programming
Web Development
14 Years Ago
by Airshow
…; <head> <title>Airshow ::
Sieve
of Eratosthenes</title> <style type="… in which we build the output string. function
sieve
(N){ var n, p, primes=[], str=[]; for… container.innerHTML = "working ..."; setTimeout(function(){container.innerHTML =
sieve
(N.value);}, 10); } }; </script> </head&…
Re: Sieve of Erastothenes simply with nested loops
Programming
Software Development
9 Years Ago
by kouty
…;"The purpose is to build a
sieve
of Erasthotenes. We beginn with a
sieve
without holes, called biglist. The indexes of…) + 2): bigList[multiple * num] = False return(bigList) #We expect a '
sieve
with many holes' print("the last result of bigList…
Re: Sieve of Erastothenes simply with nested loops
Programming
Software Development
9 Years Ago
by kouty
…;"The purpose is to build a
sieve
of Erasthotenes. We beginn with a
sieve
without holes, called biglist. The indexes of… of bigList is {0} ".format(bigList)) #We expect a '
sieve
with many holes' holeofStrainer() print("the last result of…
Re: sieve of eratosthenes -sieve of eratosthenes segmentation fault
Programming
Software Development
15 Years Ago
by Sky Diploma
Firsty, The Code for The
Sieve
is faulty.Actually its not a
sieve
at all. But anyways, Lets come back to the … its at 46349. However even if that is corrected, your
sieve
is still not proper. replace [code] j=i*i; [/code… made a lot more efficient. But as you wanted the
sieve
of erathosthenes thats to it. :) EDIT::BAD POST PLEASE DONT…
Re: Sieve of Erastothenes simply with nested loops
Programming
Software Development
9 Years Ago
by kouty
… without supplementary tools, I am Buyer. The mecanism of the
sieve
is that the first not-not prime number that appairs…
Sieve of Eratosthenes in JavaScript
Programming
Web Development
14 Years Ago
by newbieJS
… close. When asked to produce a JavaScript program using the
Sieve
of Eratosthenes, I started googling. There are a lot of… of the prime numbers between 1 and 100 using the
Sieve
of Eratosthenes and arrays in JavaScript? I can think of…
sieve of eratosthenes -sieve of eratosthenes segmentation fault
Programming
Software Development
15 Years Ago
by catchmrbharath
I am having a problem in implementing of
sieve
of eratosthenes.. please check the code and tell me the …
Re: sieve of eratosthenes -sieve of eratosthenes segmentation fault
Programming
Software Development
15 Years Ago
by catchmrbharath
The
sieve
was right. Using i*i is not a problem because all the elements like i*2,i*3 are eliminated initially if i>2 &i>3 ...and so on...
Re: sieve of eratosthenes -sieve of eratosthenes segmentation fault
Programming
Software Development
15 Years Ago
by tux4life
An example of a program which implements the 'Eratosthenes
Sieve
': [URL="http://www.daniweb.com/code/snippet1205.html"]…
sieve of Eratosthenes
Programming
Software Development
16 Years Ago
by plike922
…... its not printing the number any tips??? i am using
sieve
of Eratosthenes [CODE]#include <cstdio> #include "simpio…
Re: sieve of Eratosthenes
Programming
Software Development
16 Years Ago
by Salem
Well the next step would be to go read up on how the
sieve
actually works. Because your code looks nothing like it. For a start, the outer loop should stop at the square root of 300.
Sieve Program
Programming
Software Development
15 Years Ago
by etypaldo
…" and does the same. So far I have: [CODE]#
sieve
import sys def open_read(file_name, mode): try: the_file = open(file_name…
Sieve of Eratosthenes
Programming
Software Development
14 Years Ago
by blee93
This is my failed attempt at creating the
Sieve
of Eratosthenes. Can anyone spot any problems? I just started …
Re: Sieve of Eratosthenes
Programming
Software Development
14 Years Ago
by rubberman
…-code. Third, keep the actual code as simple as possible.
Sieve
: generate array of prime numbers. A prime number is divisible…
sieve's algorithm for finding prime numbers between given range
Programming
Software Development
11 Years Ago
by yogesh_6
//this is a mine...
sieve
's algorithm implementation please tell me where i am going …
Sieve of Erasthotene with few tools
Programming
Software Development
9 Years Ago
by kouty
… don't know why. My purpose is to make a **
sieve
of Erasthotene**. I make an unique function with many inner…
The Sieve Function. Need Help!!!
Programming
Software Development
14 Years Ago
by br0wnm4n
… trouble writing this code. The question is as follows: The
Sieve
of Erastophenes is an algorithm -- known to ancient greeks --… stop when list L becomes empty. Write a function
sieve
that takes as input a positive integer n, implements … my code for this program looks like this: [CODE]def
sieve
(n): lst = [] for number in range(2,n+1…
Challenging Sieve of Eratosthenes problem
Programming
Software Development
16 Years Ago
by SHWOO
…FGH",0 .data? count = 65000 ; 65,000 element array
sieve
DWORD count DUP(?) .code main PROC ;------------- Problem 1 ----------------- mov edx… push count push OFFSET
sieve
call initArray push count push OFFSET
sieve
call findSieve push count push OFFSET
sieve
call displayArray ;------------- Problem 7…
Re: The Sieve Function. Need Help!!!
Programming
Software Development
14 Years Ago
by TrustyTony
Yes there is many posts about Erathotenes
sieve
here in Daniweb, including [URL="http://www.daniweb.com/…
Re: Eratosthenes sieve
Programming
Software Development
11 Years Ago
by vegaseat
…list of primes 2 to < n """
sieve
= [True] * (n>>1) for x … x in range(1, n>>1) if
sieve
[x]] def np_primes1(limit): """ returns …lt;= p < limit """ # create a
sieve
of ones is_prime = np.ones(limit + 1, dtype=np.bool…
Re: Eratosthenes sieve
Programming
Software Development
12 Years Ago
by vegaseat
… list of primes 2 to < n """
sieve
= [True] * (n>>1) for x in range(…3, int(n**0.5)+1, 2): if
sieve
[x>>1]:
sieve
[(x*x)>>1::x] = [False] * ((… for x in range(1, n>>1) if
sieve
[x]] # time the function stmt = 'eras(1000000)' setup = 'from …
small factors numbers by sieve and other method timed with decorator
Programming
Software Development
13 Years Ago
by TrustyTony
… using previous results and expanding those and using modified
sieve
algorithm. For the
sieve
method you should provide your favorite prime_sieve in…
problem with sieve of eratosthenes in c
Programming
Software Development
13 Years Ago
by karan173
… m trying 2 find all primes between 2 nos using
sieve
. but somehow only 2 is being set as prime, pls…]; void set_seive(void) { /*setting of flags for prime nos. by
sieve
of erasthromas upto MAX_LIMIT*/ unsigned long long i,p; flags…
Eratosthenes sieve
Programming
Software Development
16 Years Ago
by slate
The most efficient static
sieve
generator in python I have seen so far. Returns the list of primes, that are not greater than n.
Error Sieve of Eratosthenes
Programming
Software Development
14 Years Ago
by ram619
I m trying to print the prime numbers using
Sieve
of Eratosthenes But, my output is 0 for all. please …
Re: Error Sieve of Eratosthenes
Programming
Software Development
14 Years Ago
by rxlim
… arr[i] will be j+1. However, the point of
Sieve
of Eratosthenes, I think, is that you can get all…
Re: Sieve of Erastothenes simply with nested loops
Programming
Software Development
9 Years Ago
by kouty
@tinstaafl How may we delete or update a question?
Re: Sieve of Erastothenes simply with nested loops
Programming
Software Development
9 Years Ago
by kouty
@tinstaafl - FIRST I make an effort to clarify and modify a question in many websites it is easy, a tab withe a little pencil permitt to re-edit an old question. But here it was not possible. -> i make a new question. the new question was submitted but the website buuged, I try again and the both trials were publicated - II But clearly: I ask …
Re: Sieve of Erastothenes simply with nested loops
Programming
Software Development
9 Years Ago
by pritaeas
> How may we delete or update a question? Delete: you cannot. You may request it from a moderator, but it is unlikely your request will be honoured. Update: You have 30 minutes to edit your question, after that it is locked. Additions after that time will have to be in a reply to your own post.
1
2
3
12
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC