Describe the bug
In the Prime Number module, when input a negative number like -1, then it will output will be Prime(-1).
Expected behavior
I expected the result should use the absolute input.(That mean when I input -1, the output should be Prime(1) = 2). Maybe change the input negative number to positive number can solve it, and add a dialog to show the reason.
To reproduce
- Open NCalc+ (Which is build from latest source code)
- Go to Prime module
- Input -1
- Click the evaluate bottom
- Incorrect result has been displayed
Configuration
- Android version 9
- device MI 8 Lite
Screenshots
