原创 Linux Shell 簡單編程之求出n以內的素數

輸入整數n,在終端中打印輸出n以內的素數 打開linux終端,我這裏用的操作系統是Ubuntu Linux,在終端或者桌面新建一個擴展名爲 .sh的shell文件,輸入以下代碼: #get a prime from 1~value ec