Veritas Logic & Computation Homework 2: Prime Number

import java.util.Scanner; public class Main { public static void main(String args[]) { // Out of bounds!!! Scanner myScanner = new Scanner(System.in); //Your scanner initialized, use as you see fit. /* * Write a program that checks whether a number is prime or not. * You will have to use a for/while loop for this assignment. * You will only be using whole numbers, so please use int for this assignment. * * Example: Input: 5 Output: "The number is prime." * Hint: Modulus (%) returns to you the remainder of a number when dividing. * Example: 7 % 2 returns you 1. */ //Out of bounds!!! } }