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 listDec 14, 2024 23:27Yuriy LyfenkoYuriy LyfenkoScore: 27,007Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 23:2726,87446,163,25722,621,0001,028,0002,514,944
2Dec 14, 2024 23:2726,88152,164,83122,627,0001,028,0002,523,136
3Dec 14, 2024 23:2726,95751,857,33122,691,0001,031,0002,392,064
4Dec 14, 2024 23:2726,95948,933,30722,693,0001,031,0002,392,064
5Dec 14, 2024 23:2727,00753,801,22823,766,00002,392,064
6Dec 14, 2024 23:2727,02250,176,42823,779,00002,387,968
7Dec 14, 2024 23:2727,13449,314,32122,884,000994,0002,506,752
8Dec 14, 2024 23:2727,15651,038,84422,902,000995,0002,392,064
9Dec 14, 2024 23:2727,18350,512,05523,921,00002,490,368