flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
bitRAKE 27 Mar 2025, 12:47
It's been some time, but IIRC:
a. download fasmg: https://flatassembler.net/download.php b. clone the repo c. navigate to the file P003.asm d. execute the assembler: fasmg P003.asm You'll need the include path setup. If you don't mind me asking, what are you doing currently? I'm assuming you have something configured to assembler x86 instructions? What is that? |
|||
![]() |
|
revolution 27 Mar 2025, 14:35
six_L wrote: ... I'v still thought that it is impossible to obtain all primes smaller than 2^64. Storing all of them is also a challenge. I would like to see someone do it. |
|||
![]() |
|
macomics 27 Mar 2025, 14:58
revolution wrote: It is possible, and has been done. But it takes a lot of compute resources. |
|||
![]() |
|
bitRAKE 27 Mar 2025, 15:11
If a prime was calculated every nano-second - a single processor would take over 13 years. If you could split the parallel calculation across 256 cores it'd still take ~20 days.
|
|||
![]() |
|
revolution 27 Mar 2025, 15:49
macomics wrote: Even if you use bits to store numbers and save only the odd ones, then you will still need 2^60 bitmap. It seems modern desktop processors only support virtual memory up to 2^48. |
|||
![]() |
|
revolution 27 Mar 2025, 15:51
bitRAKE wrote: If a prime was calculated every nano-second - a single processor would take over 13 years. If you could split the parallel calculation across 256 cores it'd still take ~20 days. |
|||
![]() |
|
macomics 27 Mar 2025, 16:13
I've been thinking about something else. It turns out the following: for 64-bit, it is enough to store signs of simplicity for the first 4 GB (e.g. sqr of 4GB = 2^64). 256 MB of memory is enough for storage in a 4GB bitmap (only odd). The rest of the simplicity features can simply be saved to disk. For example, after accumulating a 256 MB block. But you'll still need a hell of a lot of space.
And also need a bitmap scanning algorithm for one bits. It is efficient enough to get the numbers of the bits in the bitmap and thus not go through the checks of this bitmap in search of the next prime number. |
|||
![]() |
|
six_L 27 Mar 2025, 16:31
Hello,revolution
revolution wrote: It is possible, and has been done. But it takes a lot of compute resources. Yes, is it. I knew that the largest prime discovered untill now by humans is 2^(282589933)−1. The process of implemented it does not rely on PCs and us, but on supermachines and mathematicians. |
|||
![]() |
|
revolution 27 Mar 2025, 23:15
six_L wrote: Hello,revolution But it is a number of special form that we know of a very fast algorithm to test it. For general numbers of no special form it is not as easy. And also, not all numbers from 1 up to that number have been tested, only the powers of two are being tested. |
|||
![]() |
|
bitRAKE 27 Mar 2025, 23:32
revolution wrote:
On a practical note, I wouldn't use my sieve implementation beyond L3 cache - that is the intended use. Sieve of Atkin is typically used for very large sequential primes (implementation). |
|||
![]() |
|
six_L 28 Mar 2025, 02:36
Hi, All
All infromation about Prime is come from the "https://www.mersenne.org/" Quote: The current record: Do you know: Here, there is an example of the mature implementation of distributed computing ? |
|||
![]() |
|
revolution 28 Mar 2025, 02:46
That prime has been surpassed recently. See this link as shown above
https://www.mersenne.org/report_exponent/?exp_lo=136279841&full=1 |
|||
![]() |
|
revolution 28 Mar 2025, 02:47
six_L wrote: Do you know: Here, there is an example of the mature implementation of distributed computing ? |
|||
![]() |
|
six_L 28 Mar 2025, 03:41
Hi,revolution
revolution wrote: I have been contributing to that since 1999. Pay my respects to you. |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.