简体中文
Telegram

讨论串 Photo from Ramdev Kalantri

5 条消息 · –
    1. G
      Bro simple just take a loop and which is not divisible by any number print it.
  1. 已
    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++; } } }

来自搜索索引的公开信息流 ChatCrawler ——“公开 Telegram 的 Google”;随着该社群被抓取而更新。 时间为 UTC。

仅限公开内容,使用 Telegram 官方 API。 关于 · 常见问题 · 索引限制 · 移除页面 · 目录 · 搜索 · 计算方法