ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý½è¼Æªº¹Bºâ¤è¦¡?

½Ð°Ý½è¼Æªº¹Bºâ¤è¦¡?

½Ð°Ý¦U¦ì¤j¤j
¦p¦ó¨Ï¥Îexcel¦Û¦æ¹Bºâ"¦Û­q¸q"¼Æªº³Ì¤p½è¼Æ?
¤ñ¦p§Ú¿é¤J510·|¦Û°Ê¹Bºâ³Ì¤p½è¼Æ¬°17

¦^´_ 1# louislcw

¦ó¿×510³Ì¤p½è¼Æ¬°17?
­Y¥H510©Ò¦³¦]¼Æ¤¤ªº½è¼Æ¦Ó¨¥¡A2§Y¬°³Ì¤p½è¼Æ
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 2# Hsieh
À³¸Ó¬O»¡§Ú§Ú¦³¤@¼Æ510
§Q¥Î¦]¼Æ¤À¸Ñ±o¨ì510=2*3*5*17
¦A±q¤¤§PÂ_¨ä³Ì¤j¦]¼Æ¬°17
½Ð°Ý¤j¤j³o¼Ë¦³¸Ñ¶Ü?

TOP

¦^´_ 3# louislcw
¦Û©w¸q¨ç¼Æ
  1. Function MGCD(number As Double) As Double
  2. Dim i As Double
  3. For i = number - 1 To 2 Step -1
  4.    If number Mod i = 0 And IsOnly(i) Then MGCD = i: Exit For
  5.    
  6. Next
  7. End Function
  8. Function IsOnly(number As Double) As Double
  9. For i = 2 To number
  10.    If number Mod i = 0 Then cnt = cnt + 1
  11. Next
  12. IsOnly = cnt = 1
  13. End Function
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¤p¨Æ¤£°µ¡B¤j¨ÆÃø¦¨¡C
ªð¦^¦Cªí ¤W¤@¥DÃD