Commit a7a6749
committed
fix: add upper-bound validation for range and improve error messages in Prime Number Analyzer
Closes steam-bell-92#1132
- Option 2: clarify error message with explicit max (10,000,000)
- Option 3: add missing upper-bound check on range end; previously unbounded
inputs caused memory exhaustion with no user-friendly error
- Option 5: clarify error message with explicit max (1,000,000)1 parent 35ba3fe commit a7a6749
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
0 commit comments