Chosen Solution

I would just use my phone regularly but then one it would die out of nowhere. After that it would just die suddenly around 40-60%. Plus the battery gets drained fast.

@greenpieguy sounds like your battery is no longer taking/holding a charge. Replace the battery first and then recheck. Here is the guide for that Samsung Galaxy Grand Prime Battery Replacement