The Gateway to Computer Science Excellence
0 votes
Write a program in JavaScript that accepts an integer greater than 2 and tells whether
it is a prime number. Note that JavaScript has if and while statements with the same
syntax as C and Java. The modulo operator is %. If you need the square root of x, use
Math.sqrt (x).
in Computer Networks by Boss (10.8k points) | 13 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,741 questions
57,251 answers
104,672 users