LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2010, 07:40 AM   #1
amar_tk
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
prime number using sieve of atkin


hi friends,i am kind of new to programming.i am writing a program to find the prime numbers.i came to know that sieve of atkin is the most efficient algo to find the prime numbers.i am finding difficult to understand it.can anyone please help me to understand it?
thanks in advance
 
Old 08-15-2010, 08:24 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Maybe if you tell us what you do not understand or where you are getting stuck we may be able to help?

Ultimately your question is vague to the point that it looks like you want to be taught the algorithm ... which is not going to happen. You need to do the ground work first.
 
1 members found this post helpful.
Old 08-23-2010, 08:59 AM   #3
amar_tk
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
i am not clear with the equations (4x2+y2,3x2+y2,3x2-y2) which are used in the program.i would be happy if anyone explains me how the equations are got
 
Old 08-23-2010, 10:35 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Maybe a better explanation after searching google: http://en.wikipedia.org/wiki/Sieve_of_Atkin
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Is La Toya Jackson a Prime Number? LXer Syndicated Linux News 0 05-20-2009 07:00 AM
function to find the closest prime number... sachitha Programming 2 10-20-2006 02:47 PM
cyrus sieve DeathRipple Linux - Software 0 03-25-2005 03:23 AM
Largest Known prime number is discovered by MSU Grad! bolinux General 3 12-03-2003 07:33 PM
mersenne prime number zetsui Linux - Software 3 08-23-2003 01:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration