Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

質數的問題

0 views
Skip to first unread message

浪漫情人

unread,
Feb 12, 2001, 2:40:23 AM2/12/01
to
請問如何用vc做一個程式能判斷我們所輸入的數字是否為質數呢?
--
[1;33m※ Origin: [36m奇摩 大摩域 [37m<telnet://bbs.kimo.com.tw> [m
[1;35m◆ From: [1;32m139.175.162.23 [m

Erik

unread,
Feb 12, 2001, 6:53:38 AM2/12/01
to
1.你要會用vc寫程式
2.妳要會把質數判斷的algorithm放進你的程式.

浪漫情人 <skeche...@bbs.kimo.com.tw> wrote in message
news:3el7NN$n...@bbs.kimo.com.tw...

SP過囉..小開心

unread,
Feb 12, 2001, 3:35:44 PM2/12/01
to
【 在 skeche...@bbs.kimo.com.tw (浪漫情人) 的大作中提到: 】
: 請問如何用vc做一個程式能判斷我們所輸入的數字是否為質數呢?

只要判斷它是不是只有他自己和1可以整除它就行了

--
[m [1;35m※ 來源:‧神秘之旅 bbs.ice.cycu.edu.tw‧[FROM: 203.75.26.101] [m

布來撕

unread,
Feb 12, 2001, 8:16:04 AM2/12/01
to
《 在 dmj...@bbs.ice.cycu.edu.tw (SP過囉..小開心) 的大作中提到: 》
: 【 在 skeche...@bbs.kimo.com.tw (浪漫情人) 的大作中提到: 】
: : 請問如何用vc做一個程式能判斷我們所輸入的數字是否為質數呢?
: 只要判斷它是不是只有他自己和1可以整除它就行了

建立一個質數表來除就好了
--
Nathan Zachary: a gentleman pirate, a master thief and a scourge of the
skies! Before he was the leader of the notorious "Foutune Hunters" gang,
he was an eager young fighter pilot int the Great War.
Shot down and captured, Zachary led a daring escape from the heart of an
enemy prison camp, in the process losing the one man who could lead hom to
a hoard of stolen treasure.

[m [1;35m※ 來源:‧蛋捲廣場 bbs.tku.edu.tw‧[FROM: 210.241.235.51] [m

Erik

unread,
Feb 12, 2001, 8:43:11 AM2/12/01
to
不知您的質數表打算建多大?!

布來撕 <duenw...@bbs.tku.edu.tw> wrote in message
news:3elGAY$4...@bbs.tku.edu.tw...

0 new messages