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 17, 2021 20:10Sergey StreminSergey StreminScore: 5,058,443Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 20:105,003,2904,469,741,3474,402,895,44502,195,456
2Jun 17, 2021 20:105,017,9864,490,370,0404,415,827,97602,195,456
3Jun 17, 2021 20:105,042,9874,495,805,9634,437,828,24502,199,552
4Jun 17, 2021 20:105,058,4434,510,352,3744,451,429,93202,191,360
5Jun 17, 2021 20:105,064,9174,514,948,5574,457,126,67702,199,552
6Jun 17, 2021 20:105,075,5034,533,168,5184,466,442,95102,195,456