English
Open in Telegram

Thread Photo from Ramdev Kalantri

5 messages · –
    1. G
      Bro simple just take a loop and which is not divisible by any number print it.
  1. D
    var Input=15;var c=[];var log=1;while (c.length !== Input) {let sum=log%2;if (!sum == 0){c.push(log)};log+=1};console.log(c)
  2. K
    import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); loop: for (int i = 2, c = 0; c < n; i++) { double sqrt = Math.sqrt(i); for (int j = 2; j <= sqrt; j++) { if (i % j == 0) { continue loop; } } System.out.print(i + " "); c++; } } }
CCore Java | Java for BeginnersCore Java | Java for Beginners@codeitupjava · group · Tech
1 312members62writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count