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 28, 2023 22:55Yurkov AlekseyYurkov AlekseyScore: 216,577Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2023 22:54208,076241,101,020183,106,59302,285,568
2Dec 28, 2023 22:55210,895242,349,666185,587,25802,289,664
3Dec 28, 2023 22:54210,991238,086,302185,671,68802,297,856
4Dec 28, 2023 22:55215,809272,897,924189,912,10302,285,568
5Dec 28, 2023 22:55216,577249,645,391190,588,05602,289,664
6Dec 28, 2023 22:54218,064264,270,600191,896,16302,297,856
7Dec 28, 2023 22:55220,773250,549,947194,280,05702,293,760
8Dec 28, 2023 22:55223,818252,493,000196,960,19402,281,472
9Dec 28, 2023 22:55225,207254,338,076198,182,24302,293,760