Skip to content

turbolaft/powersCount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powers Count

The C++ code which is able to count the number of powers two values, , where 2 <= a, b <= 1000

Table of Contents

Features

  • For large numbers U may want to use multithreading and this projects procides you this opportunity
int count = multithreadedCount(a, b, 6); // 6 is threads count
std::cout << "Multithreaded Pocet se rovna " << count << std::endl;

Installation

Your compiler must be able to do C++20.

Usage

# Example installation commands
git clone https://github.com/turbolaft/powersCount.git
cd powersCount
make
./target/main 1000 1000

Examples

From 10 to 100 From 100 to 1000

About

The C++ programm to count the number of unique powers of two given numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published