Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listMay 18, 2024 17:42Ivan BessonovIvan BessonovScore: 18,230Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 17:4217,34736,227,53314,248,0001,017,0002,301,952
2May 18, 2024 17:4217,36340,113,02813,242,0002,037,0002,306,048
3May 18, 2024 17:4217,38144,114,75614,276,0001,019,0002,306,048
4May 18, 2024 17:4217,41839,641,97613,285,0002,043,0002,289,664
5May 18, 2024 17:4217,50833,247,15513,353,0002,054,0002,301,952
6May 18, 2024 17:4218,11934,601,45614,949,000996,0002,289,664
7May 18, 2024 17:4218,23077,276,87016,042,16502,289,664
8May 18, 2024 17:4218,36939,742,82814,145,0002,020,0002,379,776
9May 18, 2024 17:4218,38840,731,13214,159,0002,022,0002,289,664
10May 18, 2024 17:4218,44334,528,33114,202,0002,028,0002,301,952
11May 18, 2024 17:4219,02986,254,97716,745,64102,297,856
12May 18, 2024 17:4219,09575,826,86916,803,70002,289,664