我寫的第一支程式 質數&CPU速度測試 - Android

By William
at 2011-02-02T21:28
at 2011-02-02T21:28
Table of Contents
買了JAVA2和ANDROID的書籍 加上 懶惰偷閒的時間 再加上 最近莫名的火花
終於把第一支程式生出來啦~!
程式很簡單很小支,大概也沒有人會想用它
像我數學系的,莫名喜歡去找質數才會想寫這支程式
在電腦上跑的時候可以找到java int的上限2147483647=2^31-1是質數
手機上記憶體限制很難說能找到哪裡= ="
作百萬CPU速度測試每次會有些誤差,毫秒取值有點誤差
我用acer stream 分數是9120.0左右
無名圖文介紹http://www.wretch.cc/blog/coreyrobertw/27186414
MARKET 連結
https://market.android.com/details?id=com.CPUspeedPrimeNumber
--
只要輸入起點和終點,程式就可以把中間最大的質數找出來,並顯示計算總時間。
CPU速度測試就是計算龐大的數字後所花費的時間,時間越少越好囉~!
--
終於把第一支程式生出來啦~!
程式很簡單很小支,大概也沒有人會想用它
像我數學系的,莫名喜歡去找質數才會想寫這支程式
在電腦上跑的時候可以找到java int的上限2147483647=2^31-1是質數
手機上記憶體限制很難說能找到哪裡= ="
作百萬CPU速度測試每次會有些誤差,毫秒取值有點誤差
我用acer stream 分數是9120.0左右
無名圖文介紹http://www.wretch.cc/blog/coreyrobertw/27186414
MARKET 連結
https://market.android.com/details?id=com.CPUspeedPrimeNumber
--
只要輸入起點和終點,程式就可以把中間最大的質數找出來,並顯示計算總時間。
CPU速度測試就是計算龐大的數字後所花費的時間,時間越少越好囉~!
--
Tags:
Android
All Comments

By Vanessa
at 2011-02-07T20:17
at 2011-02-07T20:17

By Quintina
at 2011-02-12T19:51
at 2011-02-12T19:51

By Oscar
at 2011-02-17T06:35
at 2011-02-17T06:35

By Ina
at 2011-02-17T18:21
at 2011-02-17T18:21

By Jack
at 2011-02-21T11:57
at 2011-02-21T11:57

By Valerie
at 2011-02-26T05:40
at 2011-02-26T05:40

By Necoo
at 2011-03-02T11:27
at 2011-03-02T11:27

By Frederica
at 2011-03-05T11:46
at 2011-03-05T11:46

By Oliver
at 2011-03-10T07:04
at 2011-03-10T07:04

By Harry
at 2011-03-15T00:43
at 2011-03-15T00:43

By Anonymous
at 2011-03-16T01:38
at 2011-03-16T01:38

By Dorothy
at 2011-03-20T17:04
at 2011-03-20T17:04

By Oscar
at 2011-03-24T14:38
at 2011-03-24T14:38

By Hedwig
at 2011-03-26T06:17
at 2011-03-26T06:17

By Lily
at 2011-03-27T20:04
at 2011-03-27T20:04

By Connor
at 2011-03-28T06:32
at 2011-03-28T06:32

By Elizabeth
at 2011-03-28T11:13
at 2011-03-28T11:13

By Christine
at 2011-04-01T23:31
at 2011-04-01T23:31

By Thomas
at 2011-04-03T19:02
at 2011-04-03T19:02

By Adele
at 2011-04-06T12:19
at 2011-04-06T12:19

By Edith
at 2011-04-08T03:43
at 2011-04-08T03:43

By Kyle
at 2011-04-11T17:06
at 2011-04-11T17:06

By Thomas
at 2011-04-16T04:15
at 2011-04-16T04:15

By Valerie
at 2011-04-19T13:15
at 2011-04-19T13:15

By Barb Cronin
at 2011-04-21T13:53
at 2011-04-21T13:53

By Agnes
at 2011-04-25T17:36
at 2011-04-25T17:36

By Andy
at 2011-04-29T08:13
at 2011-04-29T08:13

By Mary
at 2011-04-30T10:37
at 2011-04-30T10:37
Related Posts
Launcher實用特蒐整理

By Franklin
at 2011-01-27T15:32
at 2011-01-27T15:32
免費雲端 Catch Notes 透過條碼圖文記下生活時刻

By Kama
at 2011-01-27T00:56
at 2011-01-27T00:56
第二個開發的android軟體 "pasteMe"

By Quintina
at 2011-01-26T17:58
at 2011-01-26T17:58
PhoneMarks 無痛與您的Chrome書籤同步

By Christine
at 2011-01-25T21:49
at 2011-01-25T21:49
推薦剛寫好的上B軟體~

By Freda
at 2011-01-21T11:55
at 2011-01-21T11:55