Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
600 B

  1. /**************************************************************************
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * prime.hpp
  8. *
  9. * Abstract:
  10. *
  11. * Routines dealing with prime numbers and factorization.
  12. *
  13. * Created:
  14. *
  15. * 06/11/2000 asecchia
  16. * Created it.
  17. *
  18. **************************************************************************/
  19. #ifndef _PRIME_HPP
  20. #define _PRIME_HPP
  21. #include "precomp.hpp"
  22. // An array of the first 1000 prime numbers.
  23. extern int PrimeNumbers[1000];
  24. // Greatest Common Factor
  25. int gcf(int a, int b);
  26. #endif