Number Theory

   

A Method for Generating Prime Numbers (A Constructive Approach)

Authors: Felipe Wescoup

This paper presents a method for generating lists of prime numbers. The algorithm presentedcalculates the set of all composite (non-prime) numbers up to a given limit and the set of primes is subsequently defined as its complement. The method is demonstrated through a JavaScript implementation, which is evolved over four iterative levels increasing optimization. Level 1 presents the core mathematical concept. Levels 2 and 3 include logical assumptions thatimprove efficiency. Level 4 is capable of calculating all primes up to 20 million in seconds within a standard web browser. This paper is supplemented by a public GitHub repository containing the complete operational code.

Comments: 9 Pages.

Download: PDF

Submission history

[v1] 2025-11-08 16:14:33

Unique-IP document downloads: 263 times

Vixra.org is a pre-print repository rather than a journal. Articles hosted may not yet have been verified by peer-review and should be treated as preliminary. In particular, anything that appears to include financial or legal advice or proposed medical treatments should be treated with due caution. Vixra.org will not be responsible for any consequences of actions that result from any form of use of any documents on this website.

Add your own feedback and questions here:
You are equally welcome to be positive or negative about any paper but please be polite. If you are being critical you must mention at least one specific error, otherwise your comment will be deleted as unhelpful.

comments powered by Disqus