nie-ii-year

lab stuff from undergrad second year.
git clone http://git.hanabi.in/repos/nie-ii-year.git
Log | Files | Refs | LICENSE

commit 1b464523c727c8405ebf0a0b12aba18c45ac9d8c
parent 082701161e451dc80a3f4eb7facad32f1cd0e5a9
Author: Agastya Chandrakant <acagastya@outlook.com>
Date:   Mon, 16 Apr 2018 22:37:17 +0530

Update report.md
Diffstat:
Ms4/fafl/report.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/s4/fafl/report.md b/s4/fafl/report.md @@ -86,7 +86,7 @@ Since calculation of modulo is subtracion of `v` from `u` until `u` is strictly - Goto right until current cell is `B`. - Make `B` as `1`. Repeat these four sub-steps until instruction pointer reaches `B` on the right hand side. -To find quotient, a small tweak should suffice. That is, "_Having travelled two right from reading `1`, if current cell is `X`, one subtraction is finished._" Make use of a different symbol in the array to distinguish second number from quotient (use another `i` -- personal choice, really does not matter). After making all `X` as `1`, go right until current cell is `B`. Make `B` as `1`. Move right, make current symbol as `B`. Go left until current cell is `0`. Goto step #2. +To find quotient, a small tweak should suffice. That is, "_Having travelled two right from reading `1`, if current cell is `X`, one subtraction is finished._" Make use of a different symbol in the array to distinguish second number from quotient (use another symbol, say `i` -- personal choice, really does not matter). After making all `X` as `1`, go right until current cell is `B`. Make `B` as `1`. Move right, make current symbol as `B`. Go left until current cell is `0`. Goto step #2. #### To find if the number is prime