A sleek iOS app that helps you identify prime numbers and find prime factorizations. Built with SwiftUI, Cursor, and help from Claude and ChatGPT, Prime Number Finder combines mathematical utility with a modern, user-friendly interface.
- 🔢 Prime number checking
- ⚡️ Instant prime factorization
- 📱 Clean, modern UI with Liquid Glass design
- 📖 History tracking of previous calculations
- 🎯 Input validation and filtering
- 💫 Smooth animations and transitions
- 📱 Haptic feedback for better user experience
- ♿️ Accessibility support
- iOS 26.0+
- Xcode 26.0+
- Swift 6.0+
- Clone the repository
git clone https://github.com/ahl-gram/PrimeNumberFinder.git- Open the project in Xcode
cd PrimeFinderApp
open PrimeFinderApp.xcodeproj- Build and run the project in Xcode
- Enter any positive integer in the input field
- Tap the "Check" button
- The app will tell you if the number is prime
- For composite numbers, it will show the prime factorization
- Tap the chevron on composite numbers to see all factors.
- View your calculation history by tapping the clock icon
- Efficiently determines if a number is prime
- Handles numbers up to 999,999,999,999,999,999
- Special handling for edge cases like 1
- Quickly factorizes composite numbers
- Displays factors in a clear, readable format
- Uses the × symbol for better mathematical presentation
- Keeps track of all calculations
- Displays results with timestamps
- Easy to clear history when needed
The app includes a comprehensive test suite that ensures reliability and correctness:
- Prime Number Validation: Tests for correctly identifying prime and composite numbers
- Prime Factorization: Verifies accurate factorization of various numbers
- Large Number Processing: Tests performance with numbers up to 999,999,999,999,999,999
The test suite is continuously maintained and expanded.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.