Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   Prime Number SDK6800 (http://www.go4expert.com/forums/prime-number-sdk6800-t29421/)

soorajhaswani 14Jan2013 10:49

Prime Number SDK6800
Create a 6800 program which determines if a number, n, is prime. A prime number has only two factors. Your program should work with any input for n where n >= 0 and n <= 127. If the number is prime, then print the letter Y to the display, otherwise print the letter N.

The following example has n = 5 and should print Y since n is a prime number.

n .byte 5


All times are GMT +5.5. The time now is 09:10.