What problem does it solve?
Provides a self-contained quiz generator and answer checker to help secondary-level students learn and practice Highest Common Factor (HCF) and Lowest Common Multiple (LCM) concepts, including multi-number LCMs and scheduling word problems.
Core Features & Use Cases
- Question Generation by Difficulty: Generates easy (HCF of two), medium (LCM of two), hard (LCM of three), and extrahard (scheduling/word) questions.
- Deterministic Math Logic: Uses Euclidean algorithm for gcd and lcm(a,b)=|a*b|/gcd(a,b) with controlled random ranges to avoid large results.
- API-Based Integration & Adaptive Scoring: Exposes GET /hcflcm-api/question and POST /hcflcm-api/check, enforces integer answers, and supports float-based adaptive scoring for practice progression.
Quick Start
Generate a medium-difficulty LCM question for two numbers and return the integer answer and display text.