We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

please share your comment about assignment 508 please anyone start discussion.............

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 4475


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Replies to This Discussion

mere pass ye error aa rha he koi theek kr de

aap ka code ghalat hai

for (int i=2; i<num/2; i++){

yeh code hai

in which form we have to submit our assignment?

and my line no 33 is giving an error of illegal expression. what is this?

add 1 more curly braket at the end for error 44.

Dear check whether you declared num or not?

plz is me bh help kr de

Plz upload the full solution 

Enjoy Full Code

import java.util.Random;
import java.util.Scanner;
public class Assignment {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Random random = new Random();
int primeNumber = 0;
System.out.print("Enter the size (rows and columns) of array:");
int n = sc.nextInt();


//Assign Random Number To Array
int[][] array = new int[n][n];

for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
array[i][j] = random.nextInt(90) + 10;
//Traversing The Array
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
System.out.print(array[i][j] + " ");
//Check If Prime Number Found
if (isPrime(array[i][j])) {
System.out.println("Total Prime Numbers Found:" + primeNumber);
public static boolean isPrime(int number) {
boolean flag = true;

for (int i = 2; i < number / 2; i++) {
int tmp = number % i;
if (tmp == 0) {
flag = false;
return flag;

koi byte ga ye assignment just nodepad m edit kr k .java m save krni hy 

ya netbeans use krna hy 

Dear ye code run nai ho raha proper Error Show karwa raha hy please send the complete solution without any error...


How to save a .JAVA file in Notepad [CC]

for make .java file

How to save a .JAVA file in Notepad [CC]


Latest Activity

+! Rob liked Uswa's discussion poetry
24 minutes ago
+! Rob replied to Uswa's discussion poetry
24 minutes ago
F1 Tutoring- CS posted a status
"https://youtu.be/E3zv43f2mjQ FIN630 GRAND QUIZ"
50 minutes ago
Alisha Noor liked Shanzay's discussion Yahan pal pal jalna parta Hai........
1 hour ago
Profile IconUsman, Laila kabeer, Momin Qureshi and 6 more joined Virtual University of Pakistan
1 hour ago
ZoHaiB_RaJPuT liked Shanzay's discussion Yahan pal pal jalna parta Hai........
2 hours ago
+!!! Gangster Girl !!! liked + CuTe Addi +'s discussion https://www.youtube.com/watch?v=fz8xsBCOqdg kindly like share nd coment
2 hours ago
Shanzay posted discussions
2 hours ago
Shanzay replied to +!!!StRaNGeR!!! +'s discussion عشق
2 hours ago
Shanzay liked +!!!StRaNGeR!!! +'s discussion عشق
2 hours ago
Furqan Jalib updated their profile
3 hours ago
Zabi updated their profile
3 hours ago

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service