---
title: "Discussion on \"Counting Numbers Divisible by Given Primes | Geeks for Geeks\" | Hashnode"
description: "Discussion on \"Counting Numbers Divisible by Given Primes | Geeks for Geeks\". Count numbers divisible by primes using brute force, marking multiples, and Inclusion-Exclusion Principle for efficiency"
url: "https://hashnode.com/posts/counting-numbers-divisible-by-given-primes/68b28c91b6ba90a4eebe0b09"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Counting Numbers Divisible by Given Primes | Geeks for Geeks](https://prash-algorithms.hashnode.dev/counting-numbers-divisible-by-given-primes?utm_source=hashnode&utm_medium=feed)

Count numbers divisible by primes using brute force, marking multiples, and Inclusion-Exclusion Principle for efficiency

Aug 30, 2025 · 4 min read · prash-algorithms.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#gfg](https://hashnode.com/tag/gfg)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#interview](https://hashnode.com/tag/interview)
-   [#coding-challenge](https://hashnode.com/tag/coding-challenge)
-   [#coding](https://hashnode.com/tag/coding)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Prashant Gupta](https://hashnode.com/@prashcoder1)

@prashcoder1 · India

  
[View profile](https://hashnode.com/@prashcoder1)

You can't keep doing the same thing and expect extraordinary results.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
