Problem 2649 --Getting Started - Prime Numbers

2649: Getting Started - Prime Numbers

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $26$ 正确数量 $14$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 数论

Prime Numbers 

A prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. For example, the first four prime numbers are: 2, 3, 5 and 7. 

Write a program which reads a list of N integers and prints the number of prime numbers in the list.

The first line contains an integer N, the number of elements in the list.

 N numbers are given in the following lines.

Print the number of prime numbers in the given list.
5
2
3
4
5
6
3

1 ≤ N ≤ 10000  

2 ≤ an element of the list ≤ 10^8

推荐代码 查看2649 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$7 $ms] AOJ大管家 437057 2019-06-07 14:02:05
内存最少[$2016 $KB] RUBY-WOO 360847 2019-01-18 23:35:00
第一AC 找队友,能刷题的那种 328885 2018-11-25 00:59:33
第一挑战 找队友,能刷题的那种 328885 2018-11-25 00:59:33

赛题来源/所属竞赛 会津大学《挑战数据结构与算法》 挑战数据结构与算法

竞赛编号 竞赛名称 竞赛时间 访问比赛