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 listJun 19, 2021 12:11Andrey TsvetkovAndrey TsvetkovScore: 2,026,994Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 14:202,025,3431,832,927,5191,782,302,24102,322,432
2Jun 19, 2021 13:002,025,4991,835,124,0231,782,438,92402,240,512
3Jun 20, 2021 14:202,025,9861,859,994,2001,782,867,97902,314,240
4Jun 19, 2021 12:112,026,5771,836,096,2421,783,387,74402,265,088
5Jun 19, 2021 13:002,026,9941,841,450,4781,783,754,93802,244,608
6Jun 19, 2021 13:002,027,4401,846,769,9461,784,147,18702,203,648
7Jun 19, 2021 12:112,029,9741,847,955,2101,786,377,31102,252,800
8Jun 20, 2021 14:202,031,8011,850,695,3281,787,985,30002,293,760
9Jun 19, 2021 12:112,033,4931,846,943,6141,789,473,47602,199,552