Skip to content

Kitsunp/analisis-primos-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Prime Number Formula Generator

This project implements a sophisticated system for generating and optimizing mathematical formulas capable of identifying prime numbers. It utilizes genetic algorithms, metaprogramming techniques, and symbolic mathematics to evolve increasingly effective formulas.

Features

  • FormulaGenerator: Creates random mathematical formulas
  • GeneticAlgorithm: Evolves and optimizes the formulas
  • Utility functions for formula evaluation and manipulation
  • Dynamic operation generation
  • Metaprogramming techniques for formula creation

Requirements

  • Python 3.7+
  • SymPy
  • NumPy

Installation

Clone the repository and install the required dependencies:

git clone https://github.com/yourusername/prime-formula-generator.git
cd prime-formula-generator
pip install -r requirements.txt

Usage

To run the optimized prime formula generator:

from prime_formula_generator import run_optimized_prime_formula

run_optimized_prime_formula(100)  # Generate and evaluate formulas for primes up to 100

Project Structure

  • prime_formula_generator.py: Main module containing all classes and functions
  • README.md: This file
  • requirements.txt: List of Python dependencies

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • SymPy library for symbolic mathematics
  • NumPy for numerical computations