Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 17:09:56 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3   Go Down
  Print  
Author Topic: A Math... Question :) -  (Read 1857 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 17:03:02
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3760


Topic starter
Total Post Ratings: +609

View Profile
« on: 17 September, 2011, 17:56:49 »
0

I have a little math challenge for y'all… This one isn't difficult so long as you don't overthink it, but if you do (like me) you will probably laugh at the simple solution. My hope is that you are like me and this keeps you occupied for a little while :

Find 132 consecutive composite natural numbers.

  • Natural numbers are {1,2,3,4,…}
  • A composite number is a number that isn't prime like 15 (15=3*5)
  • An example of 12 consecutive composites is: {114,115,116,117,…,125,126}

I have two solutions that I came up with (one of them required Latex)
Have fun!?
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


sqrt(Time)
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 25 January, 2012, 08:30:48
Date Registered: 10 September, 2011, 22:53:51
Posts: 37

Total Post Ratings: +4

View Profile
« Reply #1 on: 17 September, 2011, 19:20:21 »
0

I got an answer almost instantly, but that's just because I've seen this exact kind of problem done before. ^_^ (I guess that's cheating)
It is indeed fun...
I'm wondering what your second solution is?
Logged
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Total Post Ratings: +18

View Profile WWW
« Reply #2 on: 17 September, 2011, 19:38:42 »
0

Here:
-132 through 0
Its too easy

P.S. I did overthink it. I looked of a list with 50 million prime numbers and couldn't find such a gap.

EDIT: Oh wait... those aren't natural...
« Last Edit: 17 September, 2011, 19:42:23 by boot2490 » Logged

I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler for Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 17:03:02
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3760


Topic starter
Total Post Ratings: +609

View Profile
« Reply #3 on: 17 September, 2011, 19:41:42 »
0

Is that a negative 132?
  • Natural numbers are {1,2,3,4,…}
Also, such a gap does indeed exist Smiley In fact, there exists much more massive gaps Smiley

EDIT: Also, sqrt(Time), if you want to pm me your solution, feel free or you can wait until others have found it Cheesy
« Last Edit: 17 September, 2011, 19:44:06 by Xeda112358 » Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


Ashbad
Guest
« Reply #4 on: 17 September, 2011, 19:44:29 »
0

Hmm, I'll be interested to see a solution.  I've never seen this problem before, so I don't know the solution or a way to obtain it; hence, I've been playing around with some ideas in GHCi, to no current avail.
Logged
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Total Post Ratings: +18

View Profile WWW
« Reply #5 on: 17 September, 2011, 19:49:45 »
0

Yeah,
m39 through that plus 132.
Primes.zip has a text file in it with all of the digits. It is over 4 megabytes.
Whoa.

* primes.zip (2264.49 KB - downloaded 27 times.)
« Last Edit: 17 September, 2011, 19:57:03 by boot2490 » Logged

I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler for Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 17:03:02
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3760


Topic starter
Total Post Ratings: +609

View Profile
« Reply #6 on: 17 September, 2011, 19:50:23 »
0

is that a mersenne prime (out of curiosity)?
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Total Post Ratings: +18

View Profile WWW
« Reply #7 on: 17 September, 2011, 19:57:40 »
0

Si senor.
Logged

I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler for Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 17:03:02
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3760


Topic starter
Total Post Ratings: +609

View Profile
« Reply #8 on: 17 September, 2011, 19:59:54 »
0

Okay, well I do not have the computational power to test those values, but if you can show me that the next prime is greater than 133 digits away, I will accept that Smiley Note that if you are comparing, say, m34 to m35, that does not say that the next prime after m34 is m35 Smiley It just says that is the next mersenne prime
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Total Post Ratings: +18

View Profile WWW
« Reply #9 on: 18 September, 2011, 01:51:03 »
0

m39 is THE LARGEST prime number known to man. If the next one was less than 133 away, we would have found it by now.
Also, What is your answer?

P.S. How is my sig? suggestions?
« Last Edit: 18 September, 2011, 01:51:35 by boot2490 » Logged

I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler for Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 17:03:02
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3760


Topic starter
Total Post Ratings: +609

View Profile
« Reply #10 on: 18 September, 2011, 01:55:34 »
0

Actually, that is not true Smiley That might be the largest known prime (I think there are a few larger ones that have been found), but there is a special algorithm for testing mersenne primes. This method couldn't be applied to the 134 values after it Smiley

(this is why not all of the values between mersenne primes have been tested)
« Last Edit: 18 September, 2011, 01:57:18 by Xeda112358 » Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Total Post Ratings: +18

View Profile WWW
« Reply #11 on: 18 September, 2011, 02:00:34 »
0

I see. So there are likely those higher but not mersenne.
So what is your answer?
Logged

I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler for Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
sammyMaX
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 May, 2013, 00:12:41
Date Registered: 18 April, 2011, 18:01:37
Posts: 192


Total Post Ratings: +7

View Profile
« Reply #12 on: 18 September, 2011, 02:00:45 »
0

Pretty easy. I got it!
Logged


Are you wondering who Sammy is? My avatar is Sammy.
   
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 17:03:02
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3760


Topic starter
Total Post Ratings: +609

View Profile
« Reply #13 on: 18 September, 2011, 02:03:31 »
0

Well, I present you two answers...
Actually, only 1 since it was posted in IRC Smiley I will tell the other to Qwerty.55 if he wants, but I leave it up to you guys to find the other method Smiley

Theorem: If n and k are natural numbers where n is less than or equal to k, n|(k!+n)
Proof:
Let k and n be natural numbers
Since n is less than or equal to k, n is a factor of k!, so n|k!
Therefore, n|(k!+n)

A corollary follows that {k!+2,k!+3,k!+4,...,k!+k} is a sequence of k-1 composite numbers

So, if k=133, we have a sequence of at least 132 composite numbers Smiley
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Online Online

Gender: Male
Last Login: Today at 17:02:41
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #14 on: 18 September, 2011, 04:24:02 »
0

my solution was 10^120000 to 10^120000+132. (I wrote a prog in python to test that, since I was pretty sure there weren't many primes up there)
Logged




Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.323 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.