fork(16) download
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3.  
  4. bool divisible15(unsigned int x)
  5. {
  6. //286331153 = (2^32 - 1) / 15
  7. //4008636143 = (2^32) - 286331153
  8. return x * 4008636143 <= 286331153;
  9. }
  10.  
  11. int main(void) {
  12. printf("%d\n", divisible15(15));
  13. return 0;
  14. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
0