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 18, 2021 12:54Sergey StreminSergey StreminScore: 73,270Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 12:5672,912123,407,74664,162,42602,252,800
2Jun 18, 2021 12:5673,054140,561,96864,287,10902,252,800
3Jun 18, 2021 12:5473,218133,208,48564,431,49502,244,608
4Jun 18, 2021 12:5473,270141,899,49764,477,21902,256,896
5Jun 18, 2021 12:5473,463140,353,01464,647,46002,248,704
6Jun 18, 2021 12:5673,477130,985,74364,659,99902,244,608