---
title: "Discussion on \"AKS test in Javascript: Find if the number is prime or composite.\" | Hashnode"
description: "Discussion on \"AKS test in Javascript: Find if the number is prime or composite.\". AKS test stands for Agrawal–Kayal–Saxena primality test which is the first mathematical algorithm that can tell if a number is prime or composite.\nAKS test - If the coefficients of this equation are divisible by 'p'(the number you want to test) then ..."
url: "https://hashnode.com/posts/aks-test-in-javascript/60f5c9aa66fcdb0a0274780f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [AKS test in Javascript: Find if the number is prime or composite.](https://ajitpsakri.hashnode.dev/aks-test-in-javascript?utm_source=hashnode&utm_medium=feed)

AKS test stands for Agrawal–Kayal–Saxena primality test which is the first mathematical algorithm that can tell if a number is prime or composite. AKS test - If the coefficients of this equation are divisible by 'p'(the number you want to test) then ...

Jul 19, 2021 · 1 min read · ajitpsakri.hashnode.dev  
Updated Jul 26, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Ajit Sakri](https://hashnode.com/@ajitpsakri)

@ajitpsakri · India

  
[View profile](https://hashnode.com/@ajitpsakri)

I love Regex and speak JS

Final year undergrad @KLE technological university, Intern @Deevia softwares, Neog'22

## Responses 1

Markdown supported · ⌘↵ to post

[Andrew19](https://hashnode.com/@andrewx11)

[Sep 19, 2022](https://hashnode.com/posts/aks-test-in-javascript/60f5c9aa66fcdb0a0274780f/comment/6328721a99624fc71cd51df6)

this algorithm doesn't work i don't think is the full implementation
