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 listNov 1, 2023 20:05Asahi NaruhayaAsahi NaruhayaScore: 2,348,773Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 1, 2023 20:052,345,2232,135,105,6982,063,796,44202,203,648
2Nov 1, 2023 20:052,348,7732,122,651,5492,066,920,51902,187,264
3Nov 1, 2023 20:052,354,5232,155,121,7422,071,980,51802,191,360