daily pastebin goal
41%
SHARE
TWEET

antiPrimes

_codeh Jan 29th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. long antiPrimes(int n) =>
  2.     n < 2 ? 1 :
  3.     n < 3 ? 2 :
  4.     n < 7 ? 4 :
  5.     n < 9 ? 36 :
  6.     n < 11 ? 120 :
  7.     n < 18 ? 1680 :
  8.     n < 27 ? 10080 :
  9.     n < 36 ? 50400 :
  10.     n < 38 ? 554400 :
  11.     n < 70 ? 720720 :
  12.     n < 71 ? 2205403200 :
  13.     n < 80 ? 2327925600 :
  14.     n < 90 ? 27935107200 :
  15.     n < 99 ? 240940299600 :
  16.     n < 121 ? 2248776129600 :
  17.     n < 130 ? 288807105787200 :
  18.     n < 131 ? 2021649740510400 :
  19.     8086598962041600;
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top