Strona główna > Sito Eratostenesa > Sito Eratostenesa – liczby pierwsze C++

Sito Eratostenesa – liczby pierwsze C++

//sito Eratostenesa - liczby pierwsze C++
#include <iostream>
#include <cmath>
using namespace std;
int main()
  int i, j, zakres, b;
  bool tablica[1000];
  cout << "Podaj gorny zakres, max 1000" << endl;
  cin >> zakres;
  b = sqrt((float)zakres);
  for (i=2; i<zakres+1; i++)
    tablica[i] = true; 		
  for (i=2; i<=b; i++)
  if (tablica[i]!=false)
    for (j=i+i; j<zakres+1; j=j+i)
      tablica[j] = false;			
  cout << "Liczby pierwsze z zakresu od 1 do " << zakres << " to:" << endl;
  for (i=2; i<zakres+1; i++)
    if (tablica[i]!=false)       
  cout << i << "  ";
  return 0;
  1. 2 Sierpień 2013 o 10:51 am

    Online stores offer year-long savings since it is easier to run a virtual on-line shop than to run a shop in the marketplace
    that to some shop which offers everything to you under the sun that can be purchased.
    Also these online stores like provide
    special discount such as overstock coupon code for promotional
    and publicity function. Though a traditional Overstock coupon is difficult to
    find but after you get hold of it be sure to be dazzled.

    Overstock Coupon is of very good use, since it has improved the
    trend of on the web shopping by many times among
    your brain of individuals. It has also several obtaining things which improve its need.
    Several types of voucher rules are there Free Ship Coupon Code, particularly Money Saver Coupon Code and several more;
    all are employed for different purposes.
    Today these codes are being sold out to accomplish business.

    That is also comfortable for your clients since they are now free
    from the risk of advertising using a huge amount of money.
    Also some re-charge websites and sites have started the Overstock Coupon program.
    They feature schemes like on a re-charge of Rs.
    10 just one will get 200-400 concession on looking for Rs 999 and above.
    By utilizing these plans, also the sites are extending their sales.
    A margin has been fixed by many shopping sites such that shopping beyond
    that certain amount could endure no delivery cost.
    Coupon codes are actually available to even reduce the transport charge.

  2. 29 Październik 2013 o 6:08 pm

    Where To Buy Chloramphenicol,
    order chloramphenicol buy chloramphenicol – -, get chloramphenicol chloramphenicol cost, chloramphenicol
    500 mg capsules can you buy chloramphenicol eye ointment over the counter, chloramphenicol buy 53087 (, where to
    buy chloramphenicol 53057, chloramphenicol buy purchase chloramphenicol.

  3. 25 Listopad 2013 o 11:47 am

    Appreciating the time and energy you put into your website and in depth information you provide.
    It’s great to come across a blog every once in
    a while that isn’t the same out of date rehashed information.
    Wonderful read! I’ve bookmarked your site and I’m including your RSS
    feeds to my Google account.

  4. 19 Luty 2014 o 10:41 pm

    Hi there to all, the contents existing at this web page are actually remarkable for people experience, well, keep up the nice work fellows.

  5. 26 Luty 2014 o 1:46 pm

    Link exchange is nothing else except it is simply placing the other person’s webpage link on your page at appropriate place and other person will also do same
    in favor of you.

  6. 28 Luty 2014 o 10:18 pm

    With havin so much content do you ever run into any issues of plagorism or copyright infringement?
    My blog has a lot of completely unique content I’ve either created myself or outsourced but it seems
    a lot of it is popping it up all over the web without my
    permission. Do you know any solutions to help stop content from being ripped off?
    I’d genuinely appreciate it.

  7. Johna128
    24 Maj 2014 o 4:19 pm

    Several of these games are worth some time and are actually quite fun. aedkaddaedee

  8. 14 Czerwiec 2014 o 10:49 pm

    Magnificent goods from you, man. I’ve understand your stuff previous to and you’re just too great.

    I actually like what you have acquired here, certainly like what you are saying and the way in which you
    say it. You make it enjoyable and you still care for to keep it smart.
    I can not wait to read far more from you. This is actually a terrific web site.

  9. 25 Czerwiec 2014 o 7:46 am

    My family every time say that I am killing my time here at net, however I know I am getting familiarity everyday by reading thes nice content.

  10. 26 Czerwiec 2014 o 2:46 pm

    These are really fantastic ideas in on the topic of blogging.
    You have touched somne pleasant factors here. Any way keep up wrinting.

  11. 27 Czerwiec 2014 o 7:54 pm

    Aw, this was an extremely good post. Finding the time and
    actual effort to make a really good article… but what can I
    say… I put things off a lot and never seem to get nearly anything done.

  12. 1 Lipiec 2014 o 5:01 pm

    Good day! Do you use Twitter? I’d like to follow you if that would be ok.
    I’m absolutely enjoying your blog and look
    forward to new posts.

  13. 4 Lipiec 2014 o 2:34 pm

    I am really enjoying the theme/design of your site.
    Do you ever run into any web browser compatibility problems?
    A couple of my blog audience have complained about my blog not operating correctly in Explorer but looks great in Chrome.

    Do you have any suggestions to help fix this problem?

  14. 17 Sierpień 2014 o 4:50 am

    The Small Claims Tribunal and the free hotline of
    the Singapore Tourism Board are the best places for shoppers to file complaints against vendors.

    One of the biggest perks to doing your Christmas shopping early is the sense of relief you
    will feel after you have bought all the presents for your friends and family members.
    Service providers have created a number of ways to give you much ease
    when using your online shopping cart systems.

  15. 20 Sierpień 2014 o 4:38 pm

    Hi there colleagues, good post and pleasant urging commented at this place,
    I am actually enjoying by these.

  16. 25 Sierpień 2014 o 3:21 pm

    I’m curious to find out what blog platform you happen to be using?
    I’m experiencing some minor security problems with my latest site and I’d
    like to find something more safe. Do you have any

  17. 29 Sierpień 2014 o 10:48 pm

    This website definitely has all the information I needed about this subject and didn’t know who to ask.

  18. 6 Wrzesień 2014 o 7:54 am

    whoah this weblog is wonderful i love studying your
    posts. Stay up the good work! You recognize, a lot of individuals are hunting around for this info, you can help them

  19. 6 Wrzesień 2014 o 8:10 am

    I’ve read several good stuff here. Definitely value bookmarking for
    revisiting. I wonder how much attempt you set to create the sort of wonderful informative website.

  20. 12 Wrzesień 2014 o 6:40 pm

    Do you have a spam problem on this website; I also am a blogger, and I was wondering your situation; we have created some nice methods
    and we are looking to exchange methods with others, why not shoot me an e-mail if

  21. 12 Wrzesień 2014 o 7:58 pm

    Wonderful, what a blog it is! This web site presents valuable facts to us, keep it up.

  22. 14 Wrzesień 2014 o 6:12 pm

    Hi thrre would you mind letting me know which hosting company
    you’re utilizing? I’ve loaded your blog in 3 compleetely different internet browsers annd I must say this blog loads a lot quicker then most.

    Can you recommend a good internet hosting provider at a reasonabble price?
    Many thanks, I appreciate it!

  23. 16 Wrzesień 2014 o 12:17 pm

    Heya i’m for the primary time here. I came across this board and I
    in finding It really helpful & it helped me out a lot.
    I hope to present one thing again and help others like you aided me.

  24. 18 Wrzesień 2014 o 10:04 am

    Spot on with this write-up, I truly think this
    web site needs much more attention. I’ll probably be returning to
    read more, thanks for the info!

  25. 18 Wrzesień 2014 o 10:55 am

    I go to see day-to-day some blogs and information sites to read articles or reviews, however this web site offers
    feature based content.

  26. 18 Wrzesień 2014 o 11:55 am

    Thanks for finally writing about >Sito Eratostenesa – liczby pierwsze C++ | Czas na zeszyt…xD
    <Liked it!

  27. 19 Wrzesień 2014 o 7:45 am

    I read this article fully about the difference of latest and preceding technologies, it’s
    remarkable article.

  28. 6 Październik 2014 o 5:05 pm

    This is the perfect blog for anybody who would like to understand this topic.
    You know a whole lot its almost tough to argue with you
    (not that I actually will need to…HaHa). You definitely put a new spin on a topic that’s been discussed for years.

    Excellent stuff, just excellent!

  29. 17 Październik 2014 o 3:10 pm

    Every weekend i used to visit this site, because i want enjoyment, for the reason that this this website
    conations actually nice funny data too.

  30. 27 Listopad 2014 o 5:35 pm

    I enjoy what you guys are up too. This sort of clever work and exposure!

    Keep up the terrific works guys I’ve added you guys to my personal blogroll.

  31. 19 Czerwiec 2015 o 4:46 pm

    We had better use Msconfig or ask help from Windows
    optimization. But make sure that you consider the style your home is
    built with. While both parents were charged, one of the
    charges that the boy’s mother is facing is more serious than what the boy’s father is
    facing, according to WUSA-9 on April 3.

  32. 9 Listopad 2015 o 2:43 pm

    hi!,I ove your writing soo much! percentage we communijcate
    extra approximately your poost onn AOL? I need a specialist on tbis
    space to unravel my problem. Maybe that is you!
    Taking a look forward to look you.

  33. 22 Marzec 2016 o 4:51 am

    Spot on with this write-up, I seriously believe that
    this website needs a great deal more attention. I’ll probably be back again to read more, thanks for the advice!

  34. 13 Wrzesień 2016 o 5:37 pm

    I was curious if you ever considered changing the page layout of your blog?

    Its very well written; I love what youve got to say. But maybe you could a
    little more in the way of content so people could connect
    with it better. Youve got an awful lot of text for only having 1 or two pictures.
    Maybe you could space it out better?

  35. 30 Grudzień 2016 o 6:17 am

    My family always say that I am wasting my time here at web, however I know I am getting know-how every day by reading such nice posts.

  36. 4 Kwiecień 2017 o 8:40 pm

    Do you use blog sites for link building? I was told
    by a friend that they are useful but unsure if they still work post
    Bookmarked your site, should help me keep up with your

  1. No trackbacks yet.


Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:


Komentujesz korzystając z konta Log Out / Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Log Out / Zmień )

Facebook photo

Komentujesz korzystając z konta Facebook. Log Out / Zmień )

Google+ photo

Komentujesz korzystając z konta Google+. Log Out / Zmień )

Connecting to %s

%d bloggers like this: