>
&nbsp&nbsp&nbsp&nbsp Displays odd numbers to the screen.  Extend this example to factor prime numbers.
<h4>Code:</h4>
<pre>
    %include 'nasmx.inc'

    IMPORT cdecl,printf

    ENTRY my_main

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [section .text]
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    %define LIMIT 100

    PROC my_main
    USES ebx
    LOCALS NONE
        mov ebx, LIMIT
        WHILE ebx,!=, 0
            mov ecx, ebx
            mov eax, ebx
            dec ebx
           