Ad
Code
Diff
  • function fizzbuzzy(n) {
      var three = Math.floor(n/3)+1;
      var five = Math.floor(n/5)+1;
      return three+five;
    }
    • function fizzbuzzy(n) {
    • //insert code here
    • var three = Math.floor(n/3)+1;
    • var five = Math.floor(n/5)+1;
    • return three+five;
    • }
Code
Diff
  • public class Primes {
      public static boolean isAPrime(int number) {
        for (int i=2;i*i<=number;i++)
        {
          if (number % i == 0)
            return false;
        }
        
        return true;
      }
    }
    • public class Primes {
    • public static boolean isAPrime(int number) {
    • for (int i=2;i*i<=number;i++)
    • {
    • if (number % i == 0)
    • return false;
    • }
    • return true;
    • }
    • }