PrimeAcrossAll is a project that implements the prime-checking algorithm in as many programming languages as possible. The goal of this project is to compare the implementations, analyze the performance, and learn the syntax and paradigms of different languages.
PrimeAcrossAll/
│
├── languages/ # Main folder for all language implementations
│ ├── python/ # Python implementation
│ ├── java/ # Java implementation
│ ├── c/ # C implementation
│ ├── javascript/ # JavaScript implementation
│ └── [more languages] # Add more language implementations
│
├── scripts/ # Automation and utility scripts
│ └── run_all.sh # Script to run all implementations
│ └── docker_manage.sh # Script to build, run, and manage Docker containers
│ └── benchmark_all.sh # Script to build, run, and manage benchmark Docker containers
│
├── Dockerfile # Dockerfile for multi-language environment setup
├── README.md # This file
├── LICENSE.md # License information
└── CONTRIBUTING.md # Guidelines for contributing
-
Clone the repository:
git clone https://github.com/sattyamjjain/PrimeAcrossAll.git
-
Navigate to the project directory:
cd PrimeAcrossAll -
Build the Docker image, which includes all language environments.:
bash scripts/docker_manage.sh
-
Run the script inside the container to check prime numbers in all implemented languages.:
bash scripts/docker_manage.sh run
-
Run the benchmarking script inside the container to check prime numbers in all implemented languages.:
bash scripts/docker_manage.sh benchmark
- Create a new directory under
languages/for the new language. - Implement the prime-checking algorithm in the new language.
- Update
run_all.shto include your language's execution. - Test your implementation and submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.