tcepsa: (iSquared)
[personal profile] tcepsa
Would you see anything interesting if you were to do signal analysis on the prime numbers?

Is it unrealistic to think of the primes as a sort of hologram for the integers, since you can generate any integer by multiplying the necessary primes together?

Isn't it interesting, given the ease with which they can be used to create all of the other integers, that there is apparently no direct way to generate the prime numbers from themselves? (Is there a name for that?)

These thoughts brought to you by the fact that I just implemented an algorithm to find all the primes using a method inspired by the Sieve of Eratosthenes. (Start with 2 as a known prime, testing 3. Attempt to divide the test number by all of the known primes. If any of them divide it cleanly--no remainder--discard it. If none of them divide it cleanly, it is prime; add it to the collection.) This is sufficient because all of the non-prime integers are products of some collection of prime integer and therefore a number is divisible by a non-prime integer if and only if it is also divisible by a prime integer. So you can save a lot of time by not doing the checking of non-prime integers.

That having been said, I'm only up to the high 60000's. The fact that I'm doing this with a HugeInt class that I wrote myself to remove the limitation of the computer's native 4-byte integer appears to be moot, as I suspect that even if I left this to run forever I might very well die of old age before that became relevant.

~ponder~ I wonder what would happen first: me die or the computer use up all its RAM. (Annnnd we're back to signal processing and frequency analysis ~grin~)

Date: 2009-07-10 07:12 am (UTC)
From: [identity profile] nminusone.livejournal.com
Have you seen the prime number spiral?

http://www.numberspiral.com/

Date: 2009-07-10 02:48 pm (UTC)
From: [identity profile] tcepsa.livejournal.com
No, I hadn't... huh.

On the one hand, it seems a bit contrived... on the other hand, it's awesome, and whoever contrived it is bloody brilliant! I never thought of constructing spirals like that, but... wow. Fig. 5 is like a fingerprint of the integers ~grin~

Date: 2012-02-09 01:45 am (UTC)
From: [identity profile] teferixik.livejournal.com
Что-то не вижу форму обратной связи или другие координаты администрации блога.Image (http://zimnyayaobuv.ru/)Image (http://zimnyaya-obuv.ru/)

Profile

tcepsa: (Default)
tcepsa

April 2015

S M T W T F S
   12 34
567891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 30th, 2025 08:30 am
Powered by Dreamwidth Studios