Assign primes under 100 to tree vertices such that adjacent sum is not prime
Filed under Sprinklr
The question
Given an undirected tree, assign each vertex a prime number strictly less than 100 such that the sum of the values of any two adjacent vertices is not prime. Count the total number of valid assignments.
No write-up yet. Related questions below have one.
Related Sprinklr questions
Collected from public candidate posts and coding forums. Updated Nov 2026.