Programming contests

DEIK Regionális Programozó Csapatverseny, egyetemi kategória, 2025. december 7.

December 7, 2025, 10:30 AM – December 7, 2025, 3:30 PM

lattice-1

The police asked an AI where a certain crime’s perpetrator could be located. It answered that, based on available information, the possible locations are points within a circle of radius R>0R > 0 centered at the origin whose coordinates’ absolute values are different prime numbers… How many different locations could the perpetrator be at (LL)?

Input specification

The first line contains TT, the number of test cases. Then TT lines follow, each containing a positive integer RR.

Output specification

Output TT lines, each containing the requested number LL.

Constraints

1T1001\le T \le 100
1R500_0001\le R \le 500\_000

Sample input 1

  1. 3
  2. 2
  3. 10
  4. 4000
download as text file

Sample output 1

  1. 0
  2. 48
  3. 1003096
download as text file
University of Debrecen; Faculty of Informatics; v. 09/30/2024