prime.h
Upload User: szopptop
Upload Date: 2013-04-23
Package Size: 1047k
Code Size: 0k
Development Platform:

Visual C++

  1. /*
  2. Prime Class
  3. Date:
  4. 2001/02/05 (Last Updated: 2002/03/06)
  5. Note:
  6. 家荐(Prime Number)客 包访等 窃荐 笼钦
  7. */
  8. #ifndef __ORZ_ALGORITHM_PRIME__
  9. #define __ORZ_ALGORITHM_PRIME__
  10. class CPrime
  11. {
  12. public:
  13. static bool IsPrime( int nNumber );
  14. static int  RoundUp( int nNumber );
  15. static int  RoundDown( int nNumber );
  16. };
  17. #endif