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 sierpnia 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ździernika 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 listopada 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 lutego 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 lutego 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 lutego 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 czerwca 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 czerwca 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 czerwca 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 czerwca 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 lipca 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 lipca 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 sierpnia 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 sierpnia 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 sierpnia 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 sierpnia 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 września 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 września 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 września 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 września 2014 o 7:58 pm

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

  22. 14 września 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 września 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 września 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 września 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 września 2014 o 11:55 am

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

  27. 19 września 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ździernika 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ździernika 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 listopada 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 czerwca 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 listopada 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 marca 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 września 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 grudnia 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 kwietnia 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

  37. 2 Maj 2017 o 5:21 pm




  38. 15 Maj 2017 o 3:26 am


  39. 8 września 2017 o 12:35 am

    I really like reading an article that will make people think.
    Also, thanks for allowing for me to comment!

  40. 19 listopada 2017 o 1:39 pm

    Amazing blog! Do you have any tips for aspiring writers?

    I’m hoping to start my own blog soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m completely confused ..
    Any recommendations? Kudos!

  41. 24 listopada 2017 o 2:42 pm

    Hey, I think your blog might be having browser compatibility issues.

    When I look at your website in Chrome, it looks fine but when opening in Internet Explorer,
    it has some overlapping. I just wanted to give you a quick heads up!

    Other then that, excellent blog!

  42. 24 grudnia 2017 o 9:19 am

    You should be a part of a contest for one of the greatest sites on the
    web. I’m going to highly recommend this web site!

  43. 2 stycznia 2018 o 9:32 pm

    I have checked your page and i’ve found some duplicate content, that’s why you don’t
    rank high in google’s search results, but there is a tool that can help you to create 100% unique content,
    search for: Boorfe’s tips unlimited content

  44. 4 lutego 2018 o 9:56 pm

    Hi there friends, its fantastic post about teachingand
    fully explained, keep it up all the time.

  45. 29 marca 2018 o 10:52 am

    Fabulous, what a weblog it is! This blog presents useful
    facts to us, keep it up.

  46. Florian Tietjen
    31 Maj 2018 o 8:02 am


    ** MAKE $100 PER DAY **
    In this video, i’m gonna show you 5 easy ways you can get started your business online today.

    Check out the video ==>

  1. No trackbacks yet.


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


Komentujesz korzystając z konta Wyloguj /  Zmień )

Zdjęcie na Google+

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

Zdjęcie z Twittera

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

Zdjęcie na Facebooku

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


Connecting to %s

%d blogerów lubi to: