Post Reply 
Prime Number Search
07-19-2024, 08:36 PM (This post was last modified: 07-19-2024 08:54 PM by Allen.)
Post: #3
RE: Prime Number Search
(07-19-2024 01:40 PM)SlideRule Wrote:  ...it is quicker to search for the numbers that are NOT PRIME....

for \( n > 2^{32} \) this is less true.

Far more interesting rabbit hole than S.o.E on a calculator: https://github.com/bbuhrow/yafu

I think
Code:

100 FOR 1=1 TO 1000
110 IF A(I)=0 THEN PRINT I;
120 NEXT I
should be
Code:

100 FOR I=1 TO 1000         # <----   change int 1 to variable "I"
110 IF A(I)=0 THEN PRINT I;
120 NEXT I

17bii | 32s | 32sii | 41c | 41cv | 41cx | 42s | 48g | 48g+ | 48gx | 50g | 30b

Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Prime Number Search - SlideRule - 07-19-2024, 01:40 PM
RE: Prime Number Search - Allen - 07-19-2024 08:36 PM
RE: Prime Number Search - SlideRule - 07-19-2024, 10:12 PM
RE: Prime Number Search - ttw - 07-19-2024, 11:57 PM
RE: Prime Number Search - John Keith - 07-20-2024, 12:31 PM
RE: Prime Number Search - ttw - 07-21-2024, 02:52 AM



User(s) browsing this thread: 1 Guest(s)