Computer Science, asked by birbikram605, 10 months ago

Write a multithreaded pthreads program that outputs prime numbers

Answers

Answered by ItsCuteBoy
0

Answer:

In C write a multithreaded(pthread) program that outputs prime numbers. This program should work as follows: The user will run the program and will enter a number on the command line. The program will then create a seperate thread that outputs all the prime numbers less than or equal to the numbers entered by the user.

Answered by Anonymous
1

Answer:

Number of subarrays having sum exactly equal to k. Given an unsorted array of integers, find the number of subarrays having sum exactly equal to a given number k. Examples: Input : arr[] = {10, 2, -2, -20, 10}, k = -10 Output : 3 Subarrays: arr[0..

Similar questions