insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Count how many numbers between 1–500 are divisible by 7 but not by 5.

Count how many numbers between 1–500 are divisible by 7 but not by 5.

Difficulty: Easy

Phase: 6 · Mixed Logical Challenges

XP Reward: 10 XP

Topics: Mixed Logical Challenges, Easy

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Count how many numbers between 1 and 500 are divisible by 7 but not by 5. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input:

Output: 57

Explanation: Sample execution for input (no input)