math.answers.com/calculus/How_long_would_it_take_a_computer_to_count_to_one_trillion

Preview meta tags from the math.answers.com website.

Linked Hostnames

9

Thumbnail

Search Engine Appearance

Google

https://math.answers.com/calculus/How_long_would_it_take_a_computer_to_count_to_one_trillion

How long would it take a computer to count to one trillion? - Answers

That depends on many, many factors, and has no one correct answer. The speed of the computer, the language used for the code that does the counting, even the temperature of the room, and many other things, will affect the time taken. For example, using an old computer, I wrote a simple program in C that counts to a billion (not a trillion): #include <stdio.h> int main(void){ int n; for(n = 0; n < 1000000000; n++); return 0; } and it took 3.535 seconds to run, which means that if it counted up to a trillion, it would have been roughly 3535 seconds, or just under an hour. On the other hand, I wrote a similar program in PHP, and ran it on a faster machine: #!/usr/bin/php <?php for($n = 0; $n < 1000000000; $n++); and it took 163.898 seconds, which would go up to about 46 hours, or just under two days if It counted to a trillion. That increase in time was despite the fact that the latter test was done on a faster machine. The difference is due to the way the language is processed on the computer. As stated then, there is no one answer to this question.



Bing

How long would it take a computer to count to one trillion? - Answers

https://math.answers.com/calculus/How_long_would_it_take_a_computer_to_count_to_one_trillion

That depends on many, many factors, and has no one correct answer. The speed of the computer, the language used for the code that does the counting, even the temperature of the room, and many other things, will affect the time taken. For example, using an old computer, I wrote a simple program in C that counts to a billion (not a trillion): #include <stdio.h> int main(void){ int n; for(n = 0; n < 1000000000; n++); return 0; } and it took 3.535 seconds to run, which means that if it counted up to a trillion, it would have been roughly 3535 seconds, or just under an hour. On the other hand, I wrote a similar program in PHP, and ran it on a faster machine: #!/usr/bin/php <?php for($n = 0; $n < 1000000000; $n++); and it took 163.898 seconds, which would go up to about 46 hours, or just under two days if It counted to a trillion. That increase in time was despite the fact that the latter test was done on a faster machine. The difference is due to the way the language is processed on the computer. As stated then, there is no one answer to this question.



DuckDuckGo

https://math.answers.com/calculus/How_long_would_it_take_a_computer_to_count_to_one_trillion

How long would it take a computer to count to one trillion? - Answers

That depends on many, many factors, and has no one correct answer. The speed of the computer, the language used for the code that does the counting, even the temperature of the room, and many other things, will affect the time taken. For example, using an old computer, I wrote a simple program in C that counts to a billion (not a trillion): #include <stdio.h> int main(void){ int n; for(n = 0; n < 1000000000; n++); return 0; } and it took 3.535 seconds to run, which means that if it counted up to a trillion, it would have been roughly 3535 seconds, or just under an hour. On the other hand, I wrote a similar program in PHP, and ran it on a faster machine: #!/usr/bin/php <?php for($n = 0; $n < 1000000000; $n++); and it took 163.898 seconds, which would go up to about 46 hours, or just under two days if It counted to a trillion. That increase in time was despite the fact that the latter test was done on a faster machine. The difference is due to the way the language is processed on the computer. As stated then, there is no one answer to this question.

  • General Meta Tags

    22
    • title
      How long would it take a computer to count to one trillion? - Answers
    • charset
      utf-8
    • Content-Type
      text/html; charset=utf-8
    • viewport
      minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no
    • X-UA-Compatible
      IE=edge,chrome=1
  • Open Graph Meta Tags

    7
    • og:image
      https://st.answers.com/html_test_assets/Answers_Blue.jpeg
    • og:image:width
      900
    • og:image:height
      900
    • og:site_name
      Answers
    • og:description
      That depends on many, many factors, and has no one correct answer. The speed of the computer, the language used for the code that does the counting, even the temperature of the room, and many other things, will affect the time taken. For example, using an old computer, I wrote a simple program in C that counts to a billion (not a trillion): #include <stdio.h> int main(void){ int n; for(n = 0; n < 1000000000; n++); return 0; } and it took 3.535 seconds to run, which means that if it counted up to a trillion, it would have been roughly 3535 seconds, or just under an hour. On the other hand, I wrote a similar program in PHP, and ran it on a faster machine: #!/usr/bin/php <?php for($n = 0; $n < 1000000000; $n++); and it took 163.898 seconds, which would go up to about 46 hours, or just under two days if It counted to a trillion. That increase in time was despite the fact that the latter test was done on a faster machine. The difference is due to the way the language is processed on the computer. As stated then, there is no one answer to this question.
  • Twitter Meta Tags

    1
    • twitter:card
      summary_large_image
  • Link Tags

    16
    • alternate
      https://www.answers.com/feed.rss
    • apple-touch-icon
      /icons/180x180.png
    • canonical
      https://math.answers.com/calculus/How_long_would_it_take_a_computer_to_count_to_one_trillion
    • icon
      /favicon.svg
    • icon
      /icons/16x16.png

Links

58