Wrote a simple Assembly programme to check if a number is whether a prime or not. :) To compile the following code, follow the steps.
-
Install nasm(Netwide Assembler) is an assembler and disassembler for the Intel x86 architecture. command for installing nasm: sudo apt-get install nasm
-
Command for compiling Assembly Code: nasm -f elf file_name.asm.
-
Then, gcc -m32 file_name.o -o file_name