Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
Write a program to input a number & find out whether the sum of the digits in the number is a prime number or not.
java
whileloop
2 Votes
4 Réponses
1st Oct 2017, 9:51 AM
Aaron Stone
hii...any1 tell me...if i want to check prime no...then it will continue to checking untill we don't press any key...in java script...i have wrriten already code to check prime no but that is only one time not fir untill press any key to out of loop..
javascript
0 Vote
3 Réponses
22nd Aug 2016, 12:21 PM
Ankita
Guys. Here is a simple challenge from me, how about a program that finds all prime numbers before 100?
javascript
python3
-2 Votes
2 Réponses
28th Sep 2017, 7:52 AM
Onejohi
a program that takes the integer (n) as positive and prints the sum of prime numbers greater than 1 and less than n as output
python
0 Vote
2 Réponses
26th Dec 2020, 12:16 PM
a.m
hi can someone help am trying to make a progam that will ask user how many number and it will also list the prime number
c#
0 Vote
2 Réponses
20th May 2022, 2:13 PM
ashii
How to read an one dimensional array and search which elments was prime or not prime? Thenks for answering :)
c++
0 Vote
2 Réponses
24th Dec 2016, 2:50 PM
Faroug AS Hashad
I'm trying to make function that generates prime from range [n, 3n] but it's not working and I don't know why..
c++
code
math
0 Vote
1 Réponse
8th Dec 2022, 1:06 PM
Kamil Chojnacki
How to write program detecting if the input is prime it order to insert another to testing . the program stop when ensert 0
c++
0 Vote
2 Réponses
19th Oct 2020, 12:12 AM
Morsal
Write a Java Program to enter the range of an array, and print the Fibonacci series till that range. Accept only the prime ele
java
0 Vote
2 Réponses
10th Sep 2022, 5:29 AM
Itz me Ash
Enter n positive integers to print out the prime numbers in the sequence and the number of primes and max of all that primes
c++
0 Vote
1 Réponse
8th Oct 2019, 2:38 PM
Lalala
i created a programe for printing all prime no between say 1 to 100 now i want to store all that in an array,how to do that?
c++
0 Vote
5 Réponses
10th Aug 2016, 6:43 PM
Tarun kumar parashar
Eratostanes
arithmetic
numbers
prime
return
1 Vote
1 Réponse
26th Sep 2018, 4:37 PM
DazVonHelmet
2. Write a program which takes the lower limit and upper limit then find which of the number are prime number.
python
-1 Vote
1 Réponse
3rd Dec 2021, 6:49 PM
SAfiullaH KhoKhar
i=2; i<=num/2; ++i
c++
forloop
loops
prime
0 Vote
1 Réponse
25th Sep 2019, 7:52 AM
Dipanjan Basu
Getting started - first problems!
help
prime
problem
started
0 Vote
2 Réponses
15th Jan 2019, 7:19 AM
Maximilian Spall
This is the question I m having problem in "write a function sumprimes(l) that takes as input a list of integers and returns the sum of all the prime numbers in l".
python
-1 Vote
4 Réponses
3rd Aug 2016, 6:15 PM
Vipul Jain
Getting error that my array might not be initialized. I'm trying contain all prime numbers within a given number into an array.
array
findprime
java
0 Vote
2 Réponses
12th Jul 2017, 3:18 AM
Joseph Nithish
Why is my program stuck in a recursive loo
c++
factorisation
loops
math
prime
recursion
2 Votes
2 Réponses
18th Jul 2021, 6:38 AM
Purple Requiem
Please could someone explain to me why the second code isn't working out correctly of writing the sum of prime numbers <10
block
scope
1 Vote
1 Réponse
3rd Oct 2017, 5:05 AM
Sammy
Challenge: Mersenne primes
c#
c++
java
mersenne
number
pgp
prime
python
web
8 Votes
14 Réponses
29th Aug 2017, 9:03 AM
Luca
Want a way in which the program prints "is not a prime number" only one time and not many times in loop
java
javascript
web
0 Vote
1 Réponse
15th Sep 2019, 11:49 AM
Aquib Shaikh
To print numbers in the right angle pattern with prime numbers is printed as * and the remaining is printed as itself
c
python
0 Vote
1 Réponse
18th Jul 2019, 11:37 AM
Harsha vardhan
Help me understand this algorithim
algorithim
c++
math
prime
prime-numbers
0 Vote
2 Réponses
4th Jun 2018, 5:17 PM
X-1
what is wrong with this code ?
checker
code
error
explanation
help
num
prime
python
6 Votes
4 Réponses
15th Aug 2019, 1:47 PM
sujay simha
how to find the sum of two numbers that in total will give a prime number( in the list) and print these numbers
python3
-2 Votes
1 Réponse
14th Nov 2019, 5:27 PM
Марсель Халимов
Can someone explain how sieve of eratosthenes algorithm works and segmented sieve too?
algorithm
c++
numbers
prime
1 Vote
1 Réponse
21st Jun 2017, 11:27 AM
Arpit saxena
i=2; i<=num/2; ++i
c++
forloop
loops
prime
0 Vote
1 Réponse
25th Sep 2019, 7:51 AM
Dipanjan Basu
Can someone assist me please? I’m stuck (Socket Programming: Number Exchange)
help
newbie
numbers
prime
python
socket
1 Vote
1 Réponse
16th Oct 2022, 4:38 PM
Malika
[HELP] Sum of primes for n ?
algorithm
c
c++
java
kotlin
php
prime
python
summation
2 Votes
10 Réponses
1st Apr 2018, 5:48 PM
Raziul Islam
How can I find a program in java to accept a number from the user and print all the prime factors of the number.
javaprogram
primefactors
0 Vote
1 Réponse
30th May 2017, 1:13 PM
Rishita Singh
Write a program to input a number & find out whether the sum of the digits in the number is a prime number or not.
java,
loop,
while
0 Vote
1 Réponse
30th Sep 2017, 5:39 PM
Aaron Stone
how to write code in c# for this program:-
c#
digits
loop
prime
while
1 Vote
2 Réponses
27th Nov 2016, 12:41 PM
Deepashri Bharat Barve
Program for multiple of at least two digits, n, return 1 if n is multiple of at least two digits or return 0,o/p prime number c
c
-2 Votes
1 Réponse
13th Aug 2017, 11:42 AM
kiruthikaa
Not (!) operator , how does it really work, secondly how does this method account for prime 5 if n is set to limit of 10?
javascript
0 Vote
1 Réponse
15th Dec 2017, 6:12 AM
Louis McIntosh
Как создать список из простых чисел
arraylist
lists
numbers
prime
python
python3
1 Vote
1 Réponse
31st Mar 2019, 2:36 PM
AlexanderAPS
What do i have to do here?
c++
code
cpp
help
prime
0 Vote
2 Réponses
17th Jul 2017, 12:20 PM
Hakan Koca
My program won't run, and I don't understand why..?
c++
error
help
numbers
prime
programming
1 Vote
1 Réponse
27th Sep 2019, 8:36 PM
Benan Essayed
An integer n is prime if its only factors are 1 and itself. Write a code segment for checking whether the value of an int n is
java
-5 Votes
2 Réponses
27th Dec 2021, 7:26 PM
Sweshthika Sureshkumar
Compilation Error...
compilation
compiler
error
java
mistake
number
prime
1 Vote
3 Réponses
5th Apr 2018, 9:02 PM
David Wicker
Help optimizing code
c++
code
count
optimization
prime
primenumbers
0 Vote
3 Réponses
2nd May 2017, 8:02 AM
Naveed
Attention ! I need help. I cant understand the following program.
a
c
c_examples
loop
number
prime
using
while
1 Vote
1 Réponse
22nd Jun 2020, 8:06 AM
Rakibur Rahman
I need help
array
c++
factorization
forloop
help
needhelp
prime
primefactorization
stock
whileloop
0 Vote
3 Réponses
18th Oct 2018, 5:53 PM
Filippo Passante
whats wrong with this code
def
factor
for
issue
loops
prime
problem
python
python3
while
0 Vote
1 Réponse
31st Jul 2017, 3:38 AM
mohamad hosein khani cosar khizi
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
12
13
Suivant >
Aujourd'hui en vedette
What's the best way to learn anything
1 Votes
How can I improve my Authenticator App built with HTML, CSS, and JavaScript?
0 Votes
Most asked!
1 Votes
Malloc vs calloc | memory not initialized
1 Votes
help!
0 Votes
Is react js enough for frontend??
0 Votes
Mini project ideas for final years
0 Votes
Please guys could smw do this for me ?
0 Votes